Repository navigation
chore(dependabot): add cooldown and harden update settings - #460
Merged
Merged
Conversation
Add a cooldown to every update entry of .github/dependabot.yml: 3 days, and for semver ecosystems patch 3, minor 7, major 14, so a release ages before Dependabot proposes it. Security updates are not delayed. Excluded from the cooldown, so they update at once: - ghcr.io/devcontainers/features/* (devcontainers, trusted publisher) - golang (docker, trusted publisher) - actions/* (github-actions, trusted publisher) - github/* (github-actions, trusted publisher) - gitleaks/* (github-actions, trusted publisher) - ossf/* (github-actions, trusted publisher) Generated with magex dependabot:harden.
|
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.



Summary
Adds a Dependabot cooldown to every update entry of
.github/dependabot.ymland hardens its update settings.The repository's own files were read to find its ecosystems and the dependencies the owner's inventory exempts; the file was rewritten to the conventions and passed the deterministic checks below before this PR was opened. Only
.github/dependabot.ymlchanges.Changes
/,examples/ws-subscribe-to-new-headersmain/main/main/main/main+ allow: [{"dependency-type":"direct"}]
+ assignees: ["mrz1836"]
+ commit-message: {"include":"scope","prefix":"chore"}
+ cooldown: default 3 days
+ groups: docker-compose-all
+ labels: ["chore","dependencies","docker"]
+ open-pull-requests-limit: 5
+ schedule: {"day":"monday","interval":"weekly","time":"10:00","timezone":"America/New_York"}
+ target-branch: main
/releasemain+ allow: [{"dependency-type":"direct"}]
+ assignees: ["mrz1836"]
+ commit-message: {"include":"scope","prefix":"chore"}
+ cooldown: default 3 days; excludes golang
+ groups: dockerfiles-release-all
+ labels: ["chore","dependencies","docker"]
+ open-pull-requests-limit: 5
+ schedule: {"day":"monday","interval":"weekly","time":"10:15","timezone":"America/New_York"}
+ target-branch: main
Why a cooldown
A new release must age before Dependabot proposes it: 3 days by default, and for ecosystems that follow semantic versioning 3 days for a patch, 7 for a minor and 14 for a major release.
A compromised or broken release is usually found and pulled within days; the cooldown keeps it out of this repository meanwhile (a supply-chain guard).
Security updates are not delayed: the cooldown applies to version updates only.
Excluded from the cooldown
These come from publishers the owner trusts, so their updates arrive at once:
ghcr.io/devcontainers/features/*ghcr.io/devcontainers/features/docker-outside-of-docker,ghcr.io/devcontainers/features/github-cligolanggolangactions/*actions/cache,actions/checkout,actions/create-github-app-token,actions/download-artifact,actions/github-script,actions/setup-go,actions/upload-artifactgithub/*github/codeql-actiongitleaks/*gitleaks/gitleaks-actionossf/*ossf/scorecard-actionNotes
Checks passed
.github/dependabot.ymlchanges (staged and committed alone)Test plan
main: check the repository's Dependabot tab (Insights → Dependency graph → Dependabot, https://github.com/bsv-blockchain/block-headers-service/network/updates) for errors.Generated with
magex dependabot:harden