Commit 2b1e403
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
0 commit comments