security: set npmMinimalAgeGate to 7d - #16
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit c40bb35. Configure here.
| spec: "https://raw.githubusercontent.com/ambar/yarn-plugin-dedupe-on-install/96ffd15fdb25310613f003a2c258dfd73eaa36a1/index.js" | ||
|
|
||
| yarnPath: .yarn/releases/yarn-4.14.1.cjs | ||
| yarnPath: .yarn/releases/yarn-4.11.0.cjs |
There was a problem hiding this comment.
yarnPath points to missing file
High Severity
yarnPath now targets .yarn/releases/yarn-4.11.0.cjs, but that release file is not in the repository (only yarn-4.14.1.cjs is present). Any Yarn invocation that reads this config will fail before installs or tests can run.
Reviewed by Cursor Bugbot for commit c40bb35. Configure here.
| spec: bundles/@yarnpkg/plugin-unused-resolutions.js | ||
| - checksum: d1b1142e8acf30b61023df541d3405617356e65ca4b02fa949a31ab1492e70b9b627456fdcb2fba670ebfcbb7d7fc7b5f99cc62360599bf13c2295fbbe96b5e3 | ||
| path: .yarn/plugins/@yarnpkg/plugin-aws-codeartifact.cjs | ||
| spec: "https://github.com/MaintainX/yarn-plugin-aws-codeartifact/releases/download/v0.22.0-mx/plugin-aws-codeartifact.js" |
There was a problem hiding this comment.
Removed local plugin breaks tests
Medium Severity
The root config no longer loads @yarnpkg/plugin-unused-resolutions, which this repository implements. Fixture installs under tests/ inherit this config and expect the plugin to error on unused resolutions; without it, test.js assertions no longer match real behavior.
Reviewed by Cursor Bugbot for commit c40bb35. Configure here.


Summary
Sets
npmMinimalAgeGate: 7din.yarnrc.ymlto prevent Yarn from installing npm packages published less than 7 days ago.This is a defence against supply chain worm attacks (Shai-Hulud, Sept 2025 / Glassworm 2026) that inject malicious post-install scripts into newly published popular packages.
Part of org-wide security hardening across all Yarn Berry repos.