Skip to content

[SVLS-8827] add npm minimal age gate#688

Merged
ava-silver merged 2 commits intomainfrom
ava.silver/svls-8827/add-npm-minimal-age-gate
Apr 7, 2026
Merged

[SVLS-8827] add npm minimal age gate#688
ava-silver merged 2 commits intomainfrom
ava.silver/svls-8827/add-npm-minimal-age-gate

Conversation

@ava-silver
Copy link
Copy Markdown
Contributor

@ava-silver ava-silver commented Apr 7, 2026

What does this PR do?

Adds npmMinimalAgeGate: "2d" to .yarnrc.yml, configuring Yarn Berry to refuse NPM packages published less than 2 days ago during lockfile generation. This acts as a supply chain attack cooldown mechanism.

Motivation

Following the supply chain attack on axios earlier this year (incident-51987), this is a config-only security hardening. Supersedes #685 (fork PR that can't run integration tests).

What changed?

  • .yarnrc.yml: added npmMinimalAgeGate: "2d"

No lockfile changes. No functional impact.

Testing

  • yarn install completes with no errors and no lockfile diff

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.69%. Comparing base (daad3fe) to head (9f4ad07).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #688   +/-   ##
=======================================
  Coverage   77.69%   77.69%           
=======================================
  Files          12       12           
  Lines        1112     1112           
  Branches      350      350           
=======================================
  Hits          864      864           
  Misses        118      118           
  Partials      130      130           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ava-silver ava-silver marked this pull request as ready for review April 7, 2026 13:56
@ava-silver ava-silver requested a review from a team as a code owner April 7, 2026 13:56
@ava-silver ava-silver requested a review from nina9753 April 7, 2026 13:56
@ava-silver ava-silver merged commit 19a9501 into main Apr 7, 2026
7 checks passed
@ava-silver ava-silver deleted the ava.silver/svls-8827/add-npm-minimal-age-gate branch April 7, 2026 15:01
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.

3 participants