Skip to content

ci: don't run the PR-review job on Dependabot PRs - #74

Merged
prashar32 merged 1 commit into
mainfrom
ci/dependabot-review-skip
Jun 6, 2026
Merged

ci: don't run the PR-review job on Dependabot PRs#74
prashar32 merged 1 commit into
mainfrom
ci/dependabot-review-skip

Conversation

@prashar32

Copy link
Copy Markdown
Owner

The automated PR-review job already skips fork PRs — GitHub doesn't expose repo secrets to them, so CLAUDE_CODE_OAUTH_TOKEN is absent and the job can only fail. Dependabot PRs hit the exact same wall (restricted token, no secret access), but they're raised from a same-repo branch, so they slipped past the fork guard, ran, and failed every time — painting a red ✗ on dependency bumps whose real checks (build & test, CodeQL, govulncheck) all pass.

This:

  • extends the review job's guard to also skip dependabot[bot] — a clean skip, not a failure (dependency PRs are still reviewable on demand via an @claude comment, which runs in the base-repo context where the secret exists);
  • groups the weekly CI Action bumps into a single PR instead of one per action, so they're easier to review and merge together.

No effect on human-authored PRs — the review job runs on those exactly as before.

The review job already skips fork PRs because repo secrets aren't exposed
to them. Dependabot PRs hit the same wall — GitHub runs them with a
restricted token and withholds secrets — but they come from a same-repo
branch, so they passed the fork guard and ran anyway, failing every time on
the missing CLAUDE_CODE_OAUTH_TOKEN. That painted a red X on otherwise green
dependency bumps.

Extend the guard to skip dependabot[bot] too (a clean skip, not a failure),
and group the weekly CI Action bumps into a single PR so they're easier to
review and merge together.
@prashar32
prashar32 merged commit c844079 into main Jun 6, 2026
4 of 5 checks passed
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