Commit 072c7ec
fix(ci): post Claude review via GITHUB_TOKEN instead of failing OIDC (#703)
The Claude Review workflow passed anthropic_api_key but no github_token, so
claude-code-action fell through to minting a GitHub App token via OIDC
(setupGitHubToken → getOidcToken). That path needs the Claude GitHub App
installed on the repo and failed on every PR with "Could not fetch an OIDC
token", so the advisory review never ran.
Pass github_token: ${{ secrets.GITHUB_TOKEN }} (mapped to OVERRIDE_GITHUB_TOKEN
by the action), which skips OIDC and posts review comments using the
workflow's own token — the job already has pull-requests: write. Drop the now
-unused id-token: write permission.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 335ebea commit 072c7ec
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments