Point the Claude workflows at the API key secret that actually exists - #22
Conversation
Both workflows requested secrets.CLAUDE_CODE_OAUTH_TOKEN, which was never set on this repo. GitHub resolves a missing secret to an empty string, so the action ran with no credential and failed on every pull request. claude-code-action@v1 accepts anthropic_api_key as an equivalent input, so switch both to that. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughBoth Claude Code GitHub Actions workflows now pass ChangesClaude workflow authentication
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Checkov (3.3.8).github/workflows/claude-code-review.ymlTraceback (most recent call last): .github/workflows/claude.ymlTraceback (most recent call last): Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Both Claude workflows asked for
secrets.CLAUDE_CODE_OAUTH_TOKEN. That secret was never set on this repo. GitHub resolves a missing secret to an empty string rather than failing loudly, so the action ran with no credential andclaude-reviewfailed on every pull request.claude-code-action@v1takesanthropic_api_keyas an equivalent input, so both workflows now use that, and theANTHROPIC_API_KEYrepo secret is set.Opened ready for review rather than as a draft on purpose: this PR is the test. If the check goes green here, the fix works.
Verified: all three workflow files still parse as YAML, and no reference to the old secret name remains under
.github/.🤖 Generated with Claude Code
Summary by CodeRabbit