[AI] Add npm minimal age gate for supply-chain defense (#8011)

* [AI] Add npmMinimalAgeGate to block dependency versions newer than 3 days

* [autofix.ci] apply automated fixes

* [AI] Add release notes for npm minimal age gate

---------

Co-authored-by: Claude <[email protected]>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-06-01 09:25:44 +00:00
committed by GitHub
co-authored by Claude autofix-ci[bot]
parent 000d957453
commit 773c46f68e
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -11,3 +11,8 @@ yarnPath: .yarn/releases/yarn-4.13.0.cjs
# Secure default: don't run postinstall scripts.
# If a new package requires them, add it to dependenciesMeta in package.json.
enableScripts: false
# Supply-chain defense: don't install package versions published less than 3
# days ago, giving the community time to catch compromised releases. Trusted
# packages that need immediate updates can be listed in npmPreapprovedPackages.
npmMinimalAgeGate: '3d'
+6
View File
@@ -0,0 +1,6 @@
---
category: Maintenance
authors: [MatissJanis]
---
Add a 3-day minimum age gate for npm dependencies to harden against supply-chain attacks