Skip to content

ci(claude-review): skip on dependabot-authored PRs#674

Open
jidulberger wants to merge 1 commit into
mainfrom
fix/skip-claude-review-on-dependabot
Open

ci(claude-review): skip on dependabot-authored PRs#674
jidulberger wants to merge 1 commit into
mainfrom
fix/skip-claude-review-on-dependabot

Conversation

@jidulberger

Copy link
Copy Markdown
Contributor

Summary

Test plan

🤖 Generated with Claude Code

The workflow's `head.repo.full_name` guard skips fork PRs (they lack
secret access), but dependabot pushes to same-repo branches, so it
falls through. GitHub separately withholds repo secrets from
dependabot-triggered runs since 2020 — `ANTHROPIC_API_KEY` is empty
and the action fails. That's the red 1/8 on every open dependabot
PR (#673, #672, #671, #669, #668, #642, #641).

Add `github.actor != 'dependabot[bot]'` to the same-repo guard.
Dependabot bumps are routine and don't need AI review.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Josh Dulberger <jdulberger@Joshs-MacBook-Air-2.local>
@jidulberger
jidulberger requested a review from cbrownpax8 as a code owner July 6, 2026 20:02
@operon-ensemble-reviewer

Copy link
Copy Markdown

Ensemble Code Review

Verdict: approve

Summary: A minimal, correct CI-only change that adds github.actor != 'dependabot[bot]' to the existing job-level if guard so the Claude review job is skipped on Dependabot-authored PRs (where ANTHROPIC_API_KEY is intentionally unavailable). All three reviewers grounded the change and found no correctness, security, or contract concerns.

Findings (none — all reviewers approved)

The Verifier confirmed the >- YAML folding produces a single valid boolean expression, github.actor is a built-in GitHub Actions context value (always populated), and no other files reference or depend on this workflow. No correctness, security, or operational issues found.


Suggestions (2)
  • Consider a more general automation guard (e.g. checking a github.actor bot prefix or github.triggering_actor) if other bots/GitHub Apps that lack ANTHROPIC_API_KEY may open same-repo PRs in the future — this avoids repeating the same fix. (Pattern, Architect)
  • Consider noting in CONTRIBUTING or infra docs that Dependabot-authored PRs intentionally skip the Claude review job, so future maintainers don't mistake the absent job for a misconfiguration. (Architect)

Generated by Operon Ensemble Code Review.

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