ci: auto-merge Dependabot patch/minor PRs after 5-day cooldown - #259
Merged
Conversation
- dependabot.yml: add 5-day release cooldown to npm and github-actions ecosystems so updates are only proposed once a release has aged - dependabot.yml: group github/codeql-action sub-actions into one PR to avoid the mixed-version CodeQL failure seen with split bumps - new dependabot-automerge workflow: enables squash auto-merge on patch/minor Dependabot PRs; branch protection holds the merge until required checks pass; majors remain manual
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Implements hands-off Dependabot handling with a supply-chain waiting period:
dependabot.ymlcooldown: default-days: 5on both npm and github-actions ecosystems — Dependabot won't propose an update until the upstream release is at least 5 days old (most malicious releases are yanked within days).codeql-actiongroup sogithub/codeql-action/{init,analyze,upload-sarif}bump together in one PR, avoiding the mixed-version CodeQL configuration error that hit chore(deps): bump github/codeql-action/analyze from 4.37.4 to 4.37.5 #255/chore(deps): bump github/codeql-action/init from 4.37.4 to 4.37.5 #256.dependabot-automerge.yml(new workflow)dependabot/fetch-metadata(SHA-pinned, v3.1.0).DEPENDABOT_AUTOMERGE_TOKEN, stored as a Dependabot secret) rather thanGITHUB_TOKEN, because merges made byGITHUB_TOKENdon't triggeron: pushworkflows — the Cloudflare Pages deploy and release-please would silently stop running.Setup required before this works end-to-end: create a fine-grained PAT (repo: samlguy; permissions: Contents RW, Pull requests RW, Workflows RW) and store it with: