Skip to content

chore: add minimal age to package installations#161

Merged
cryptodev-2s merged 1 commit into
mainfrom
cryptodev2s/min-package-age
Nov 12, 2025
Merged

chore: add minimal age to package installations#161
cryptodev-2s merged 1 commit into
mainfrom
cryptodev2s/min-package-age

Conversation

@cryptodev-2s
Copy link
Copy Markdown
Contributor

@cryptodev-2s cryptodev-2s commented Nov 6, 2025

Summary

This pull request enforces a 3-day minimum release age for all NPM packages. Packages published more recently will be blocked from installation, reducing the risk of supply-chain attacks involving newly compromised releases.

Teams that need exceptions can override this restriction by listing packages under the npmPreapprovedPackages option.

This is a new feature included in yarn v4.10.*


Note

Add a 3-day npm package age gate with allowlisted scopes in Yarn config.

  • Config (.yarnrc.yml):
    • Add npmMinimalAgeGate: 4320 to require packages be ≥3 days old.
    • Add npmPreapprovedPackages allowlist for @metamask/*, @metamask-previews/*, and @lavamoat/* to bypass the gate.

Written by Cursor Bugbot for commit 9dabfae. This will update automatically on new commits. Configure here.

@cryptodev-2s cryptodev-2s force-pushed the cryptodev2s/min-package-age branch from c556a58 to 0a0869a Compare November 6, 2025 18:01
@cryptodev-2s cryptodev-2s changed the title Cryptodev2s/min package age chore: add minimal age to package installations Nov 6, 2025
@cryptodev-2s cryptodev-2s force-pushed the cryptodev2s/min-package-age branch from 0a0869a to 9dabfae Compare November 12, 2025 14:51
@cryptodev-2s cryptodev-2s merged commit 7b583a3 into main Nov 12, 2025
19 checks passed
@cryptodev-2s cryptodev-2s deleted the cryptodev2s/min-package-age branch November 12, 2025 15:14
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.

3 participants