Issues with Tool Authorization: Claude pauses for approval despite using --allowedTools #871
Replies: 1 comment
-
|
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.
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