Skip to content

fix(ci): correct allowedTools syntax for claude-code-action v1#2167

Merged
naqvitalha merged 2 commits into
mainfrom
fix/allowed-tools-syntax
Mar 19, 2026
Merged

fix(ci): correct allowedTools syntax for claude-code-action v1#2167
naqvitalha merged 2 commits into
mainfrom
fix/allowed-tools-syntax

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

Description

Fixes the allowedTools syntax for claude-code-action v1. The v1 flag uses Bash(command prefix) with * wildcards, not the colon-separated Bash(command:subcommand:*) format.

All Bash tool permissions were silently failing causing 100% permission denials on every agent run.

Before: Bash(gh:issue:), Bash(yarn:build:), Bash(git:log:*)
After: Bash(gh issue *), Bash(yarn build), Bash(git log)

Verified working with 0 permission denials.

Test plan

  • Bot workflow tested with gh issue, yarn build, git status — all passed
  • Zero permission denials confirmed

The v1 --allowedTools flag uses Bash(command prefix) with * wildcards.
Bash(gh issue *) matches 'gh issue list', 'gh issue edit', etc.
Bash(yarn build) matches exact 'yarn build' with no args.
Both forms needed for commands that can run with or without args.
@naqvitalha
Copy link
Copy Markdown
Collaborator

@agent-bot Correction: triage needs --max-turns 10. The other workflows should not have a turn limit.

@naqvitalha naqvitalha merged commit a632e10 into main Mar 19, 2026
13 checks passed
@naqvitalha naqvitalha deleted the fix/allowed-tools-syntax branch March 19, 2026 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant