Commit 1152c00
authored
Upgrading `yarn` to use the cooldown feature to avoid pulling packages
that are "too recent". Extra layer of protection against compromised
packages with supply-chain attacks.
We already use the same mechanism in `snaps` and `core`, I just re-used
the same value.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Build tooling changes affect dependency installation behavior and
could break CI or local installs if packages aren’t old enough or not
preapproved, but no runtime application logic is modified.
>
> **Overview**
> Upgrades the repo’s Yarn version to `yarn@4.10.3` and updates
configuration to enforce a **3-day `npmMinimalAgeGate`** during
installs.
>
> Adds an allowlist via `npmPreapprovedPackages` (e.g., `@metamask/*`,
`@lavamoat/*`) so selected scoped packages can bypass the age gate.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
777d2bc. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
1 parent 2afa37b commit 1152c00
3 files changed
Lines changed: 958 additions & 927 deletions
Large diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments