Skip AI code review on Dependabot PRs#766
Open
arunshenoy99 wants to merge 1 commit into
Open
Conversation
GitHub withholds repo secrets from Dependabot-context runs, so the Cloudflare AI gateway secrets are empty and the review job hard-fails on every Dependabot PR. That red check permanently blocked auto-merge. Guard the job on github.actor so it is skipped (which counts as passing) for Dependabot.
AI code review✅ Strengths
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Follow-up to scheduled Dependabot auto-merge.
The
Review PR diffAI code-review check hard-fails on every Dependabot PR withMissing required secret: CLOUDFLARE_ACCOUNT_ID. GitHub withholds repository secrets from Dependabot-context runs, so the Cloudflare AI gateway secrets are empty and the reusable review workflow errors out.Because the auto-merge gate requires all checks to be green, that permanently red check blocks auto-merge for all Dependabot PRs.
What
Guard the AI-review job on
github.actor != 'dependabot[bot]'so it is skipped on Dependabot PRs. A skipped job counts as passing, so it no longer blocks auto-merge, and we don't spend AI-gateway quota reviewing dependency bumps.No change to behavior on human/fork PRs.