Skip to content

Commit 7cc9fb3

Browse files
committed
Add gh CLI commands to code template
1 parent 8630789 commit 7cc9fb3

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

internal/templates/code.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,31 @@
176176
"gem push",
177177

178178
// Privilege escalation
179-
"sudo"
179+
"sudo",
180+
181+
// GitHub CLI commands that modify remote state
182+
"gh pr create",
183+
"gh pr merge",
184+
"gh pr close",
185+
"gh pr reopen",
186+
"gh pr review",
187+
"gh pr comment",
188+
"gh release create",
189+
"gh release delete",
190+
"gh repo create",
191+
"gh repo fork",
192+
"gh repo delete",
193+
"gh issue create",
194+
"gh issue close",
195+
"gh issue comment",
196+
"gh gist create",
197+
"gh workflow run",
198+
"gh api",
199+
"gh auth login",
200+
"gh secret set",
201+
"gh secret delete",
202+
"gh variable set",
203+
"gh variable delete"
180204
]
181205
}
182206
}

0 commit comments

Comments
 (0)