ci: skip Claude Code reviewer on Dependabot PRs#36
Conversation
The claude workflow fails on Dependabot PRs because secrets (CLAUDE_CODE_OAUTH_TOKEN) are not available to the dependabot actor. This blocks the dependabot auto-merge automation when claude is a required status check. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 4 minutes and 1 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the Claude Code GitHub Actions workflow to avoid running the claude job for Dependabot-authored pull requests, addressing failures caused by missing CLAUDE_CODE_OAUTH_TOKEN on Dependabot events and helping Dependabot PRs progress through required checks.
Changes:
- Adds a Dependabot guard to the
claudejob’sif:expression forpull_requestevents. - Keeps
@claudemention-based triggering viaissue_comment/pull_request_review_commentunchanged.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/claude.yml:
- Around line 18-19: The gating condition currently checks github.actor to
detect Dependabot PRs but github.actor can be a different user for reopened/sync
events; update the workflow conditional expression that uses
"github.event.pull_request.head.repo.full_name == github.repository &&
github.actor != 'dependabot[bot]'" to instead compare the PR author via
github.event.pull_request.user.login (i.e., replace github.actor !=
'dependabot[bot]' with github.event.pull_request.user.login !=
'dependabot[bot]') so Dependabot-authored PRs are consistently excluded.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: b013752a-1fa2-4bcc-bf65-e8734a8d71f1
📒 Files selected for processing (1)
.github/workflows/claude.yml
github.actor reflects who triggered the workflow run (e.g. a maintainer reopening), not the PR author. Use github.event.pull_request.user.login for reliable Dependabot detection, consistent with dependabot-automerge.yml. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|



Summary
github.actor != 'dependabot[bot]'condition to the Claude Code workflow's pull_request triggerclaudecheck from running (and failing) on Dependabot PRs whereCLAUDE_CODE_OAUTH_TOKENis unavailableclaudeis a required status checkTest plan
claudecheck does not run on Dependabot PRs after merge@claudementions🤖 Generated with Claude Code
Summary by CodeRabbit