chore: update allow-scripts to v5 for version pinning#41933
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning MetaMask internal reviewing guidelines:
|
| "@trezor/connect-web>@trezor/connect>@trezor/utxo-lib>blake-hash": false, | ||
| "@trezor/connect-web>@trezor/connect>@trezor/utxo-lib>tiny-secp256k1": false, | ||
| "core-js-pure": true, | ||
| "eth-lattice-keyring>gridplus-sdk": false, |
There was a problem hiding this comment.
Notice this one is gone. It no longer has a lifecycle script and new version of allow-scripts prunes that automatically on yarn allow-scripts auto
|
@metamaskbot update-policies |
|
Policies updated. Tip Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers. ✅ lavamoat/browserify/beta/policy.json changes match main/policy.json policy changes |
|
@MetaMask/policy-reviewers |
Builds ready [60ba8f3]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [60ba8f3]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [a792438]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs
|
Builds ready [a792438]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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 90f32ce. Configure here.
6742cfc
|
Builds ready [6742cfc]
⚡ Performance Benchmarks (Total: 🟢 0 pass · 🟡 0 warn · 🔴 0 fail)
Bundle size diffs
|




Description
Updated @lavamoat/allow-scripts to v5
The breaking change is that it now pins versions by default.
An update to allowed package's version will not get it scripts executed until allowlist gets updated. Thus - every version bump of a package with allowed scripts needs to be looked at before the new script runs.
running
will produce the updates necessary
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
and then look at it
For additional information, run:
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Moderate risk because it changes install-time script allowlisting behavior (version-pinned entries) which can block or newly permit dependency scripts after upgrades, potentially impacting
yarn/CI builds.Overview
Upgrades
@lavamoat/allow-scriptstov5.0.1and updateslavamoat.allowScriptsto pin allowed script entries to exact package versions (e.g.,@sentry/cli#...,sharp#...) instead of unversioned allow rules.Updates the lockfile for the new
allow-scriptsdependency chain and adjusts resolved versions accordingly (includingtar).Reviewed by Cursor Bugbot for commit 6742cfc. Bugbot is set up for automated code reviews on this repo. Configure here.