Skip to content

Commit 2b1e403

Browse files
keebclaude
andauthored
fix: quote --allowedTools in issue-triage workflow (#905)
## Summary - Fix `/triage` command failure caused by `shell-quote` parsing of unquoted `Bash(...)` patterns in `claude_args` - Wraps the `--allowedTools` value in single quotes so spaces and parentheses are preserved as a single token ## Root Cause `claude-code-action` uses `shell-quote` to parse `claude_args`. The `Bash(...)` patterns added in #852 contain spaces (e.g. `Bash(gh api --method POST:*/reactions)`), which caused: 1. Parentheses treated as shell operators and stripped 2. Space-splitting broke patterns into separate tokens 3. `--method` parsed as a standalone CLI flag, corrupting the entire argument structure 4. Claude Code crashed with exit code 1 Confirmed by workflow logs from the failed #902 triage — allowed tools were `["Read", "Glob", "Grep", "Bash", "gh", "issue", "api"]` instead of the intended patterns. Fixes #904 ## Test plan - [ ] Re-run `/triage` on #902 after merge and verify it completes successfully - [ ] Verify the workflow logs show the correct `Bash(...)` patterns in `allowedTools` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0c993a6 commit 2b1e403

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/issue-triage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
162162
claude_args: |
163163
--model claude-opus-4-5-20251101
164-
--allowedTools Read,Glob,Grep,Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh api --method POST:*/reactions),Bash(gh api --method PATCH:*/comments/*)
164+
--allowedTools 'Read,Glob,Grep,Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh api --method POST:*/reactions),Bash(gh api --method PATCH:*/comments/*)'
165165
166166
- name: Add completion reaction
167167
if: success()

0 commit comments

Comments
 (0)