From a3187c6f710417e8e138c7d8a269ee0519f625d8 Mon Sep 17 00:00:00 2001 From: keeb Date: Sat, 28 Mar 2026 09:44:45 -0700 Subject: [PATCH] fix: quote --allowedTools in issue-triage workflow to fix shell-quote parsing The claude-code-action uses shell-quote to parse claude_args. The Bash(...) patterns containing spaces (e.g. `Bash(gh api --method POST:*/reactions)`) were being split into separate tokens, causing parentheses to be stripped as shell operators and `--method` to be parsed as a standalone CLI flag. This corrupted the argument structure and caused Claude Code to exit with code 1. Wrapping the value in single quotes preserves it as a single token through shell-quote parsing. Fixes #904 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/issue-triage.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml index 7e64b7c2..30a97a98 100644 --- a/.github/workflows/issue-triage.yml +++ b/.github/workflows/issue-triage.yml @@ -161,7 +161,7 @@ jobs: anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} claude_args: | --model claude-opus-4-5-20251101 - --allowedTools Read,Glob,Grep,Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh api --method POST:*/reactions),Bash(gh api --method PATCH:*/comments/*) + --allowedTools 'Read,Glob,Grep,Bash(gh issue view:*),Bash(gh issue comment:*),Bash(gh api --method POST:*/reactions),Bash(gh api --method PATCH:*/comments/*)' - name: Add completion reaction if: success()