Issues with Tool Authorization: Claude pauses for approval despite using --allowedTools #871
Unanswered
Ranzaaroor
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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