Skip to content

Commit a072710

Browse files
authored
Fix claude review on fork PRs (#4502)
1 parent 4c85a9d commit a072710

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
with:
3333
allowed_bots: 'renovate'
3434
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
35+
# Fork PRs get an environment-scoped OIDC token that the Claude App token exchange rejects (401),
36+
# so pass github_token only there; internal PRs keep the App token flow.
37+
github_token: ${{ (github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository) && github.token || '' }}
3538
claude_args: |
3639
--model claude-opus-4-6
3740
plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'

0 commit comments

Comments
 (0)