ci: adopt the shared Dependabot auto-merge gate - #11
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.
What changed
The Dependabot auto-merge gate becomes the shared, org-wide contract from nicodes/cicd:
.github/workflows/dependabot.ymlis replaced by a thin caller pinned atnicodes/cicd/.github/workflows/dependabot.yml@fade862978fc1a2ba625d9486443aa0e6723f8bf(full commit SHA). The gate body — fetch-metadata, trusted-base checkout, policy evaluation, exact-head merge — lives in the shared workflow, so every repo runs the same logic and a fix lands everywhere at once. This repo has nocd.yml(the site deploys via Vercel), so the caller passesdispatch-target: ci.yml: merged-main coverage is preserved by dispatching CI after the merge, sinceGITHUB_TOKENmerges suppress push events.scripts/engineering/helpers/(dependency-policy.py,merge-checked.py) withSOURCE.jsonrecording their origin (nicodes/cicdatfade8629) and sha256 checksums, verified byte-identical to source. The gate executes them from the pull request's protected base SHA — never from the PR head..github/dependabot.ymldrops itsgroupsblock: the contract is per-dependency pull requests.dependency-policy.pyalways rejects grouped updates (several dependencies cannot be judged as one routine change), so grouping would only leave otherwise-eligible updates waiting for review.This supersedes the previous in-repo variant (a plain
gh pr merge --auto --squashgated only on Dependabot's own update-type output), which never verified that the required checks actually ran and passed on the exact PR head.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.