Skip to content

Commit 5e27889

Browse files
julienldclaude
andcommitted
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

File tree

.github/workflows/gemini-triage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,8 @@ jobs:
348348
"run_shell_command(tail)",
349349
"run_shell_command(git log)",
350350
"run_shell_command(git show)",
351-
"run_shell_command(gh issue)",
351+
"run_shell_command(gh issue view)",
352+
"run_shell_command(gh issue list)",
352353
"google_web_search"
353354
]
354355
}

0 commit comments

Comments
 (0)