Skip to content

Add 7-day release cooldown in .github/dependabot.yml - #41684

Open
derrickaw wants to merge 1 commit into
masterfrom
codescan/gha-dependabot-cooldown
Open

derrickaw wants to merge 1 commit into
masterfrom
codescan/gha-dependabot-cooldown

Conversation

@derrickaw

@derrickaw derrickaw commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:

  • The PR remediates confirmed, live Code Scanning finding(s) (CodeQL / zizmor) on master without altering intended public API or workflow semantics
  • The fix is minimal, idiomatic, and avoids masking underlying defects (false positives and noisy rules are dismissed or scoped via config rather than code churn)
  • Relevant unit tests, linters, Gemini review feedback, and live workflow_dispatch runs (for workflow/action changes) have been verified

Initiative Progress (as of 2026-11-25 20:43 UTC): 18 PRs merged so far, with ~16 more PRs needed to be merged to close out all actionable Code Scanning findings (with #41637 disabling Note-level zizmor/self-repository warnings).

Code Scanning Remediation Context (End Goal, Scope & Impact)

If you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)

Summary

Resolves all 4 Medium-severity GitHub Code Scanning alerts (#187, #188, #189, #190, zizmor/dependabot-cooldown) in .github/dependabot.yml:

  • zizmor/dependabot-cooldown: Adds a 7-day release cooldown (cooldown: default-days: 7) across all 4 configured ecosystems (gomod, pip, gradle, github-actions) to mitigate supply-chain risk from newly published package/action compromises.
    • Note: Per GitHub Dependabot behavior, cooldown applies only to routine version updates — Dependabot security updates continue to bypass cooldown automatically.

Verification

@derrickaw

Copy link
Copy Markdown
Collaborator Author

/gemini review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

📋 Review Summary

This PR adds a 7-day release cooldown (cooldown.default-days: 7) across all four configured package ecosystems (gomod, pip, gradle, and github-actions) in .github/dependabot.yml. The change cleanly resolves the zizmor/dependabot-cooldown code scanning findings and strengthens supply-chain security against newly published dependency compromises while allowing Dependabot security updates to proceed unaffected.

🔍 General Feedback

  • The YAML syntax, indentation, and cooldown configuration conform to the GitHub Dependabot v2 schema across all configured ecosystems.
  • No issues found; this change is ready to merge.

💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.

@github-actions github-actions Bot added the size/xs XS: <10 lines changed label Nov 25, 2026
@derrickaw derrickaw added ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review and removed ready-for-human Draft PR with all checks passing and all review comments resolved, ready for human review labels Nov 25, 2026
@derrickaw
derrickaw marked this pull request as ready for review November 25, 2026 21:01
@github-actions

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @damccorm added as fallback since no labels match configuration
Backup reviewer: jrmccluskey (if the main reviewer is unresponsive, you can escalate to them by tagging their username)

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@damccorm damccorm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Dependabot security updates continue to bypass cooldown automatically

How is this measured? Do packages have to declare that they're specifically making security updates (I expect many packages don't do this well if so)

I think there is tension here, but Beam's release voting period naturally provides some protection here anyways (we won't release bad binaries for at least 3 days, but practically it is usually longer). Given that, I'm not sure that this is a net positive for security.

@derrickaw

Copy link
Copy Markdown
Collaborator Author

Dependabot security updates continue to bypass cooldown automatically

How is this measured? Do packages have to declare that they're specifically making security updates (I expect many packages don't do this well if so)

My understanding is that dependabot security updates are driven by the Github Advisory Database, which aggregates CVEs etc rather than package-level metadata flags. Probably if silent security fixes are shipped without any CVE etc would be treated as routine version updates, but Github already applies an implicit 3-day default cooldown when cooldown parameter is omitted, so default-days of 7 only adds 4 days over current behavior.

I think there is tension here, but Beam's release voting period naturally provides some protection here anyways (we won't release bad binaries for at least 3 days, but practically it is usually longer). Given that, I'm not sure that this is a net positive for security.

I think the primary threat cooldown mitigates isn't shipping a bad Beam release binary, but executing a compromised github-action, pip, gradle, gomod release inside apache beam CI itself as soon as the dependabot PR runs or merges and before a release vote happens. Most compromised releases are detected and yanked within a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants