Skip to content

Commit e2c7a7f

Browse files
ci: allow bot-triggered PRs to run claude code review (#465)
When @claude on GitHub pushes commits, the actor is github-actions[bot], which the claude-code-action rejects as a non-human actor. This adds both claude and github-actions[bot] to the allowed_bots list. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0422dd0 commit e2c7a7f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/claude-code-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
uses: anthropics/claude-code-action@26ddc358fe3befff50c5ec2f80304c90c763f6f8 # v1
4242
with:
4343
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
44+
allowed_bots: 'claude,github-actions[bot]'
4445
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
4546
plugins: 'code-review@claude-code-plugins'
4647
prompt: |

0 commit comments

Comments
 (0)