Skip to content

Commit 5c0e487

Browse files
manavgupclaude
andauthored
fix: Add API key fallback for Claude Code review workflow (#464)
Add support for ANTHROPIC_API_KEY as fallback authentication method in Claude Code review workflow to handle OAuth token expiration/revocation. This fixes the CI failure where CLAUDE_CODE_OAUTH_TOKEN was missing or expired: - OAuth token preferred (for Pro/Max users) - API key as fallback (for API key users) - Action will use whichever is available Related: PR #452 CI failure Issue: OAuth tokens expired in October 2025 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent fc59794 commit 5c0e487

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
uses: anthropics/claude-code-action@v1
3737
with:
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
# OAuth token preferred, API key as fallback
3940
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
41+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
4042
prompt: |
4143
REPO: ${{ github.repository }}
4244
PR NUMBER: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)