Commit 5e27889
fix(workflow): Restrict Gemini to read-only gh commands
- Change "run_shell_command(gh issue)" to specific read-only commands:
- "run_shell_command(gh issue view)"
- "run_shell_command(gh issue list)"
- Prevents Gemini from using write operations like:
- gh issue edit
- gh issue close
- gh issue comment
- gh issue create
Repository files are already read-only (no write_file, edit_file, or
shell redirects in allowlist). This completes full read-only enforcement
at the tool level, complementing the prompt instructions.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 3e89988 commit 5e27889
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
| 352 | + | |
352 | 353 | | |
353 | 354 | | |
354 | 355 | | |
| |||
0 commit comments