Skip to content

chore(dependabot): add cooldown and harden update settings - #386

Merged
mrz1836 merged 2 commits into
masterfrom
chore/dependabot-hardening
Oct 19, 2026
Merged

mrz1836 merged 2 commits into
masterfrom
chore/dependabot-hardening

Conversation

@mrz1836

@mrz1836 mrz1836 commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a Dependabot cooldown to every update entry of .github/dependabot.yml and hardens its update settings.
The repository's own files were read to find its ecosystems and first-party dependencies; the file was rewritten to the conventions and passed the deterministic checks below before this PR was opened. Only .github/dependabot.yml changes.

Changes

Ecosystem Directory Target branch Change
gomod / master + cooldown: default 3 days; semver patch 3, minor 7, major 14; excludes github.com/bsv-blockchain/*
github-actions / master + cooldown: default 3 days
devcontainers / master + cooldown: default 3 days

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.

First-party dependencies (excluded from the cooldown)

These come from the owner's own accounts (bsv-blockchain), so their updates arrive at once:

Ecosystem Pattern Owner Matches
gomod github.com/bsv-blockchain/* bsv-blockchain github.com/bsv-blockchain/go-bt/v2, github.com/bsv-blockchain/go-sdk

Update

The gomod exclude was added in a second commit (b876ec9), after the inventory named bsv-blockchain (with BitcoinSchema and mrz1836) as first-party owners for this repo. The file was checked again with magex dependabot:harden's own validation: every check below passes, and a new run finds nothing left to change. The notes below were written before it.

Notes

Added a cooldown to all three existing entries (gomod gets default 3 / patch 3 / minor 7 / major 14 days; github-actions and devcontainers get default-days: 3 only, since they don't support semver-specific days) and noted the cooldown in the header comment. No entries were added because gomod, github-actions and devcontainers at "/" are already covered, every entry already targets master, and no cooldown excludes apply. All other settings, comments and YAML style are unchanged; security updates are not delayed by the cooldown. Minor note: the header's Purpose line still mentions only GitHub Actions even though Go modules and devcontainers are also covered, which I left as-is.

  • gomod /: Added cooldown with default-days: 3, semver-patch-days: 3, semver-minor-days: 7, semver-major-days: 14; no exclude. (The entry had no cooldown. gomod supports semver-specific days, and no first-party excludes are allowed.)
  • github-actions /: Added cooldown with default-days: 3; no exclude. (The entry had no cooldown. github-actions only takes default-days, and no first-party excludes are allowed.)
  • devcontainers /: Added cooldown with default-days: 3; no exclude. (The entry had no cooldown. devcontainers only takes default-days, and no first-party excludes are allowed.)

Checks passed

  • valid YAML, one document, version: 2, only Dependabot's top-level keys
  • no registries, none added; the other top-level settings unchanged
  • every existing entry kept (3 of 3): its ecosystem, directories and target-branch
  • the existing entries' settings unchanged: schedule, allow, ignore, labels, groups, assignees, commit-message, registries and the rest
  • no new entry
  • target-branch is master on every entry that had none (an existing one is kept)
  • only Dependabot's keys and ecosystems; insecure-external-code-execution only where supported, never newly allow
  • every entry has a cooldown: default-days 3, and semver-patch-days 3, semver-minor-days 7, semver-major-days 14 where the ecosystem takes them
  • cooldown excludes only the first-party patterns from the inventory (1 allowed)
  • no two entries of one ecosystem update the same directory for the same branch
  • no secret, registry or ${{ }} reference added
  • only .github/dependabot.yml changes (staged and committed alone)

Test plan


Generated with magex dependabot:harden

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.

Generated with magex dependabot:harden.
Copilot AI balanced review requested due to automatic review settings October 19, 2026 18:10
@github-actions github-actions Bot added chore Simple dependency updates or version bumps feature Any new significant addition update General updates labels Oct 19, 2026
@github-actions github-actions Bot added the size/XS Very small change (<=10 lines) label Oct 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused configuration changes match the stated policy, with no unresolved findings.

No open issues 🎉

What changed in this PR

Adds release-age cooldowns to Dependabot’s existing update entries to reduce exposure to newly released dependencies.

Changes:

  • Go modules wait 3 days for patches, 7 for minor releases, and 14 for major releases.
  • GitHub Actions and devcontainers receive a 3-day cooldown.
  • The header documents the cooldown policy.
File Description
.github/​dependabot.yml Adds cooldown settings to all three ecosystems and documents the policy.

Review effort: Balanced

… cooldown

First-party dependencies update at once:
- github.com/bsv-blockchain/* (gomod): github.com/bsv-blockchain/go-bt/v2, github.com/bsv-blockchain/go-sdk

From the inventory's first-party owners for BitcoinSchema (BitcoinSchema,
bsv-blockchain, mrz1836); checked with magex dependabot:harden's validation.
@mrz1836
mrz1836 merged commit ce24415 into master Oct 19, 2026
28 checks passed
@github-actions
github-actions Bot deleted the chore/dependabot-hardening branch October 19, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Simple dependency updates or version bumps feature Any new significant addition size/XS Very small change (<=10 lines) update General updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants