Skip to content

ci(dependabot): require 7-day cooldown for dependency upgrades#487

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/kozlek/ci/dependabot-cooldown/require-7-day-cooldown-dep-upgrades--3178a090
May 22, 2026
Merged

ci(dependabot): require 7-day cooldown for dependency upgrades#487
mergify[bot] merged 1 commit into
mainfrom
devs/kozlek/ci/dependabot-cooldown/require-7-day-cooldown-dep-upgrades--3178a090

Conversation

@kozlek
Copy link
Copy Markdown
Contributor

@kozlek kozlek commented May 22, 2026

Mitigate supply chain attacks by waiting 7 days before adopting any new dependency release. Most compromised packages (Shai-Hulud, ua-parser-js, eslint-config-prettier, etc.) are detected and yanked within hours-to-days of publication, so a release-age delay catches the overwhelming majority of malicious releases before they hit our lockfiles.

Security updates bypass this delay automatically — Dependabot's cooldown option is documented as "only available for version updates, not security updates", so CVE fixes still ship without waiting.

Mirrors the equivalent change in the Mergify monorepo (which uses Renovate's minimumReleaseAge): Mergifyio/mergify#31013.

Change-Id: I3178a090b07d4cf135ca3254ed0a1b883ecc478c
Copilot AI review requested due to automatic review settings May 22, 2026 09:06
@mergify mergify Bot deployed to Mergify Merge Protections May 22, 2026 09:06 Active
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 22, 2026

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🟢 Required Reviews

Wonderful, this rule succeeded.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 🔎 Reviews

Wonderful, this rule succeeded.
  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

Wonderful, this rule succeeded.
  • body ~= (?ms:.{48,})

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to reduce Dependabot PR churn by enforcing a 7-day “cooldown” between dependency upgrade PRs for both npm and GitHub Actions updates.

Changes:

  • Adds a cooldown: default-days: 7 stanza to the npm Dependabot update config.
  • Adds the same cooldown stanza to the GitHub Actions Dependabot update config.
Comments suppressed due to low confidence (1)

.github/dependabot.yml:22

  • cooldown is not a recognized key in the Dependabot v2 configuration schema, so this will cause the config to be rejected and Dependabot updates to stop. Use a supported weekly schedule to approximate a 7-day cooldown and remove cooldown.
    cooldown:
      default-days: 7

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/dependabot.yml
@kozlek kozlek marked this pull request as ready for review May 22, 2026 09:10
@mergify mergify Bot requested a review from a team May 22, 2026 09:11
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented May 22, 2026

Merge Queue Status

This pull request spent 2 minutes 32 seconds in the queue, including 1 minute 46 seconds running CI.

Required conditions to merge

mergify Bot added a commit that referenced this pull request May 22, 2026
@mergify mergify Bot added the queued label May 22, 2026
@mergify mergify Bot merged commit 0ec99e4 into main May 22, 2026
8 checks passed
@mergify mergify Bot deleted the devs/kozlek/ci/dependabot-cooldown/require-7-day-cooldown-dep-upgrades--3178a090 branch May 22, 2026 09:54
@mergify mergify Bot removed the queued label May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants