Skip to content

Add minimal age gate for yarn packages (1w)#394

Merged
jubeira merged 1 commit intomasterfrom
yarn-min-age-gate
Apr 7, 2026
Merged

Add minimal age gate for yarn packages (1w)#394
jubeira merged 1 commit intomasterfrom
yarn-min-age-gate

Conversation

@jubeira
Copy link
Copy Markdown
Contributor

@jubeira jubeira commented Mar 31, 2026

Description

Whenever we update the lockfile, only bring in packages that have been released at least 1 week ago.
This should prevent (some?) supply chain attacks in case we're unlucky enough to update something while one of them is ongoing; they are usually discovered within hours / a day.

See yarnpkg/berry#6899 for reference.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Dependency changes
  • Code refactor / cleanup
  • Documentation or wording changes
  • Other

Checklist:

  • The diff is legible and has no extraneous changes
  • N/A Complex code has been commented, including external interfaces
  • N/A Tests are included for all code paths
  • The base branch is either master, or there's a description of how to merge

Issue Resolution

N/A

@jubeira jubeira requested a review from EndymionJkb March 31, 2026 14:24
Copy link
Copy Markdown
Collaborator

@EndymionJkb EndymionJkb left a comment

Choose a reason for hiding this comment

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

Great idea! We should put this on everything then. (Assuming CI failures are just intermittent.)

@jubeira jubeira merged commit dbca020 into master Apr 7, 2026
79 of 81 checks passed
@jubeira jubeira deleted the yarn-min-age-gate branch April 7, 2026 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants