ci: skip Claude Code reviewer on Dependabot PRs - #100
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 3 minutes and 59 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)
📝 WalkthroughWalkthroughThe change updates the job-level Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 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
Adjusts the Claude Code GitHub Actions workflow to avoid running on Dependabot PRs (where the OAuth token secret isn’t available), preventing the claude check from failing and blocking Dependabot auto-merge.
Changes:
- Adds a Dependabot exclusion to the
claudejob’s conditional execution forpull_requestevents.
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 17-19: The PR exclusion condition currently checks github.actor
which can change when maintainers re-open or re-trigger Dependabot PRs; update
the conditional to use github.event.pull_request.user.login instead so the
original PR author (Dependabot) is reliably detected—replace occurrences of
github.actor in the pull_request conditional expression with
github.event.pull_request.user.login to exclude Dependabot PRs consistently.
🪄 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: 43b739b8-64a7-442d-a9e3-588dd096c9a9
📒 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