Repository navigation
Prevent pre-existing Dependabot auto-merge from suppressing main CI - #530
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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
A pre-existing Dependabot auto-merge request can merge with
GITHUB_TOKENas soon as the PRRequiredcheck passes, racing the app-tokenworkflow_runmerge and suppressingCheckon the new main commit. PR #521 had a green PR-head check, but its exact main SHA has noCheck/Requiredrun.Change
requested, clear an existing auto-merge request only for an open, same-repo Dependabot PR at the exact checked head, with a separatepull-requests: writecleanup job.Requiredgate (read-only token) until no competing request remains; fail closed on stale heads or unsuccessful cleanup.Validation
python3 -I .github/scripts/dependabot-auto-merge.test.py(9 passed)actionlint .github/workflows/ci.yml .github/workflows/dependabot-auto-merge.ymlgit diff --checkandgit diff --cached --checkLive acceptance requires the next naturally qualifying Dependabot merge to produce a successful
Check/Requiredrun on its exact main SHA; this PR alone does not establish that. No release or host-install claim is made.