Skip to content

Commit b14d4ea

Browse files
bloveclaude
andauthored
fix(ci): add id-token: write so claude-review can mint its GitHub token (#700)
claude-code-action@v1 fetches an OIDC token to mint its GitHub token for posting review comments; without id-token: write it failed with 'Could not fetch an OIDC token'. Surfaced by the first live PR (#699): auto-approve worked, but the genuine review never posted. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5625e40 commit b14d4ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/claude-review.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
permissions:
2020
contents: read
2121
pull-requests: write
22+
id-token: write # claude-code-action mints its GitHub token via OIDC
2223
steps:
2324
- name: Checkout
2425
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)