Skip to content

build: approve scripts we rely on at install time, in prep for npm 12#558

Open
joanise wants to merge 1 commit into
mainfrom
dev.ej/approve-scripts
Open

build: approve scripts we rely on at install time, in prep for npm 12#558
joanise wants to merge 1 commit into
mainfrom
dev.ej/approve-scripts

Conversation

@joanise
Copy link
Copy Markdown
Member

@joanise joanise commented Jun 3, 2026

PR Goal?

With npm 12, scripts will not run unless they are explicitly approved.

See

Fixes?

Future proof our installation procedure, although I'm sure it's going to cause trouble when we bump versions in the package lock and forget to bump script approval. But this is where npm is heading, and that's going to make things safer, so we have to adapt to it.

Feedback sought?

Is it OK to blanket all the scripts we run now just like this? I'm figuring at this point we use these and things are OK. These permissions are pinned, so I'm figuring if a supply chain attack compromises something we use, it won't be able to run and we'll get a chance to audit before we update the allow list.

Priority?

low

Tests added?

n/a

How to test?

When you run npm install on main with a recent version of npm, you'll see this warning:

npm warn allow-scripts 18 packages have install scripts not yet covered by allowScripts:

with this PR, that warning is gone.

You can see it in CI on main vs this PR's branch.

Confidence?

medium

Version change?

no

@semanticdiff-com
Copy link
Copy Markdown

semanticdiff-com Bot commented Jun 3, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  package.json  14% smaller

@joanise joanise requested a review from deltork June 3, 2026 19:53
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 3, 2026

PR Preview Action v1.6.3

🚀 View preview at
https://ReadAlongs.github.io/Studio-Web/pr-preview/pr-558/

Built to branch gh-pages at 2026-06-03 19:58 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

1 participant