Issues with Tool Authorization: Claude pauses for approval despite using --allowedTools #871
Replies: 2 comments
-
|
The If you want to skip permission checks entirely in CI (where there is no interactive terminal to approve), pass Alternatively, you can set permissions in |
Beta Was this translation helpful? Give feedback.
-
The real issue: Bash is disabled by default in Claude Code ActionYour glob patterns are fine -- the actual problem is that the Bash tool itself isn't available to Claude by default in Claude Code Action. From the configuration docs:
What's happening: How to fix itOption 1: Explicit allowedTools with correct syntax (recommended)- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
claude_args: |
--allowedTools "Bash(gh:*),Bash(git:*)"Here's how the pattern syntax actually works:
That space before One Option 2: Use
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m working on a workflow where a Claude Code Action audits PR diffs and, if necessary, checks out a branch to create a new PR to master.
I'm hitting a roadblock where Claude consistently pauses to ask for manual permission to run commands like
gh pr vieworgh issue close, even though I have explicitly added these to the--allowedToolsconfiguration. Since this is running in a CI environment, the process just hangs or fails because there is no way to provide manual approval.I’ve tried:
Adding
Bash(gh *)andBash(git *)to the allowed tools.Explicitly listing subcommands like
Bash(gh issue close*).Passing the
GH_TOKENenvironment variable.Has anyone successfully implemented a fully "hands-off" automation with the GitHub CLI tools? Am I missing a specific flag to force non-interactive mode for these authorized tools?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions