Skip to content

fix: add id-token: write permission to Claude review workflow#15

Closed
Dhwanil25 wants to merge 1 commit intomainfrom
fix/claude-review-workflow-permissions
Closed

fix: add id-token: write permission to Claude review workflow#15
Dhwanil25 wants to merge 1 commit intomainfrom
fix/claude-review-workflow-permissions

Conversation

@Dhwanil25
Copy link
Copy Markdown
Owner

Problem

The Claude Code Action was failing with:

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

Fix

Added id-token: write to the job permissions in .github/workflows/claude-review.yml.

Before

permissions:
  contents: read
  pull-requests: write

After

permissions:
  contents: read
  pull-requests: write
  id-token: write

Note: You also need ANTHROPIC_API_KEY set in repo Settings → Secrets and variables → Actions for the action to authenticate with Anthropic.

🤖 Generated with Claude Code

Required for the Claude Code Action to fetch an OIDC token for auth.
Without this the action fails with "Could not fetch an OIDC token".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Dhwanil25
Copy link
Copy Markdown
Owner Author

Closing — merging this fix into PR #13 to keep everything in one branch.

@Dhwanil25 Dhwanil25 closed this Mar 24, 2026
@Dhwanil25 Dhwanil25 deleted the fix/claude-review-workflow-permissions branch March 25, 2026 00:36
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.

1 participant