Skip to content

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

Merged
mrz1836 merged 1 commit into
masterfrom
chore/dependabot-hardening
Oct 20, 2026
Merged

mrz1836 merged 1 commit 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 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.yml changes.

Changes

Ecosystem Directory Target branch Change
gomod / master unchanged
github-actions / master ~ cooldown: default 3 days → default 3 days; excludes actions/*, github/*, gitleaks/*, ossf/*
devcontainers / master ~ cooldown: default 3 days → default 3 days; excludes ghcr.io/devcontainers/features/*

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 the owner's own accounts (bsv-blockchain) and from publishers the owner trusts, so their updates arrive at once:

Ecosystem Pattern Why Matches
devcontainers ghcr.io/devcontainers/features/* trusted publisher ghcr.io/devcontainers/features/docker-outside-of-docker, ghcr.io/devcontainers/features/github-cli
github-actions actions/* trusted publisher actions/cache, actions/checkout, actions/create-github-app-token, actions/github-script, actions/upload-artifact
github-actions github/* trusted publisher github/codeql-action
github-actions gitleaks/* trusted publisher gitleaks/gitleaks-action
github-actions ossf/* trusted publisher ossf/scorecard-action
gomod github.com/bsv-blockchain/* first-party: bsv-blockchain github.com/bsv-blockchain/go-bt/v2, github.com/bsv-blockchain/go-sdk

Notes

Added the inventory's trusted-publisher cooldown excludes to the github-actions entry (actions/, github/, gitleaks/, ossf/) and the devcontainers entry (ghcr.io/devcontainers/features/*), and updated the header's cooldown line to mention them. The gomod entry, all other settings, comments and YAML style are unchanged; every ecosystem in the repository was already covered, so no entries were added. One thing to keep in mind is that excluded publishers skip the 3-day cooldown, so a compromised release from one of them would be proposed right away. That trust is inherited from the owner's inventory.

  • github-actions /: Added cooldown.exclude: ["actions/", "github/", "gitleaks/", "ossf/"]; default-days: 3 kept. (The owner's inventory lists these as trusted publishers whose updates should not wait out the cooldown; the current exclude was empty.)
  • devcontainers /: Added cooldown.exclude: ["ghcr.io/devcontainers/features/*"]; default-days: 3 kept. (The owner's inventory lists the devcontainers features publisher as trusted; the current exclude was empty.)

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 inventory's patterns, first-party or trusted (6 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.
Excluded from the cooldown, so they update at once:
- ghcr.io/devcontainers/features/* (devcontainers, trusted publisher)
- actions/* (github-actions, trusted publisher)
- github/* (github-actions, trusted publisher)
- gitleaks/* (github-actions, trusted publisher)
- ossf/* (github-actions, trusted publisher)
- github.com/bsv-blockchain/* (gomod, first-party: bsv-blockchain)

Generated with magex dependabot:harden.
Copilot AI balanced review requested due to automatic review settings October 19, 2026 20:31
@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 narrow configuration changes match the stated requirements, with no unresolved findings.

No open issues 🎉

What changed in this PR

Adds trusted-publisher exceptions to the existing Dependabot cooldowns without changing other update settings.

Changes:

  • Exempts four GitHub Actions publisher namespaces and devcontainers features from cooldowns.
  • Updates the header comment to document these exceptions.
File Description
.github/​dependabot.yml Adds cooldown exclusions and updates their documentation.

Review effort: Balanced

@mrz1836
mrz1836 merged commit 7144e7d into master Oct 20, 2026
31 checks passed
@github-actions
github-actions Bot deleted the chore/dependabot-hardening branch October 20, 2026 01:16
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