Repository navigation
ci: restore id-token: write for the Claude review action - #9
Merged
Merged
Conversation
The action needs it to exchange the job's OIDC token for a Claude GitHub App installation token. Without it the review step fails with "Could not fetch an OIDC token" (PR #8 run 34562301648). The earlier comment claiming the permission was unused was wrong. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RYiDstNPvrtMqDr3cEqY4
jacobyoby
added a commit
that referenced
this pull request
Sep 11, 2026
* ci: add @claude on-demand alongside the automatic review claude.yml runs Claude in tag mode: only when someone with write access writes `@claude` in an issue, pull request comment or review. The job is gated on the mention itself, so ordinary comments never start a runner, and there is no `prompt` input — a prompt is what would turn this into an every-event automation. It sits beside claude-code-review.yml rather than replacing it; dropping the automatic review later is deleting one file. `id-token: write` is included. I removed it from the review workflow earlier as unused and #9 restored it — correctly: the action exchanges the workflow's OIDC token to post as the Claude GitHub App, so tag mode needs it as well. Skips green while ANTHROPIC_API_KEY is not visible to this repository. Actions pinned to commit SHAs; the claude-code-action pin is the commit its annotated v1 tag dereferences to, not the tag object. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzsJf6bUyYZdq3kxJ8DGix * ci: authenticate @claude with the Claude Code OAuth token Follow #11: the review action now reads CLAUDE_CODE_OAUTH_TOKEN because the API-key path needs a prepaid credit balance the org does not carry — the first real review run on this PR failed after 435 ms with is_error:true and zero cost. Use the same secret and the same skip-when-unset gate here so the two workflows cannot drift apart on how they authenticate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzsJf6bUyYZdq3kxJ8DGix --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Claude review step fails with
Could not fetch an OIDC token(PR #8, run 34562301648). The action exchanges the job's OIDC token for a Claude GitHub App installation token, soid-token: writeis required — the earlier comment saying it was unused was wrong.The review will not run on this PR either: the action refuses to run when the workflow file differs from
main. It will run on PR #8 once this merges.🤖 Generated with Claude Code
https://claude.ai/code/session_017RYiDstNPvrtMqDr3cEqY4