Skip to content

ci: grant id-token write to the claude-review workflow - #97

Merged
PiVortex merged 1 commit into
mainfrom
ci/claude-review-id-token
Jun 17, 2026
Merged

PiVortex merged 1 commit into
mainfrom
ci/claude-review-id-token

Conversation

@PiVortex

Copy link
Copy Markdown
Collaborator

Problem

/claude-review runs but fails on every run — it never posts a review. The most recent run on PR #95 (run 27677681190) completed with failure at the Run Claude Code review step:

Could not fetch an OIDC token. Did you remember to add `id-token: write` to your workflow permissions?

anthropics/claude-code-action@v1 authenticates via a GitHub OIDC token, which requires id-token: write in the job's permissions. The job only had contents: read, pull-requests: write, issues: write, so the action aborted before it could review or comment.

Change

One line — add id-token: write to the claude job's permissions block in .github/workflows/claude-review.yml.

Note

Like any issue_comment-triggered workflow, this only takes effect once it's on the default branch (main). After merge, a fresh /claude-review comment is needed to re-trigger — the previously failed run does not retry on its own.

🤖 Generated with Claude Code

The Claude review job authenticates via a GitHub OIDC token, which requires
`id-token: write` in the job permissions. Without it anthropics/claude-code-action
fails on every run ("Could not fetch an OIDC token") before it can review or
comment. Add the permission so /claude-review can post its review.
Copilot AI review requested due to automatic review settings June 17, 2026 09:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the failing /claude-review workflow by granting the claude job the GitHub OIDC permission (id-token: write) required by anthropics/claude-code-action@v1 to fetch an OIDC token and proceed with posting reviews.

Changes:

  • Adds id-token: write to the permissions: block for the claude job in the Claude review workflow.

@PiVortex
PiVortex merged commit fc0cddf into main Jun 17, 2026
8 checks passed
@PiVortex
PiVortex deleted the ci/claude-review-id-token branch June 17, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants