Skip to content

Use CLAUDE_CODE_OAUTH_TOKEN in Claude workflows - #82

Merged
cszhe merged 1 commit into
masterfrom
fix-claude-oauth-token
Oct 8, 2026
Merged

cszhe merged 1 commit into
masterfrom
fix-claude-oauth-token

Conversation

@cszhe

@cszhe cszhe commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Both Claude workflows passed anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}, but the repo only has a CLAUDE_CODE_OAUTH_TOKEN secret. The action received an empty key and failed with "Either ANTHROPIC_API_KEY, CLAUDE_CODE_OAUTH_TOKEN, or workload identity federation … is required" (failed run).
  • Switch claude.yml and claude-code-review.yml to claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}.

Test plan

  • After merge, comment @claude on an issue/PR and confirm the Claude Code workflow authenticates.
  • Note: the Claude Code Review workflow on this PR itself may still fail, since pull_request runs can use the PR's workflow file but secrets behave per trigger — verify after merge on a new PR.

🤖 Generated with Claude Code

The workflows referenced secrets.ANTHROPIC_API_KEY, which doesn't exist
in this repo, so the action failed environment validation. Switch both
to the configured CLAUDE_CODE_OAUTH_TOKEN secret.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cszhe
cszhe merged commit 69bd8cf into master Oct 8, 2026
4 checks passed
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