Repository navigation
Require approval for dependency install scripts - #98
Merged
Merged
Conversation
Only reviewed dependencies may run install scripts. unrs-resolver is approved, pinned to its reviewed version, so updating it fails the install until it's re-approved. @parcel/watcher is denied, since it ships prebuilt binaries and only builds from source on request. npm 11.19+ enforces it; npm 10 (Node 22) warns about an unknown config and ignores it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jstayton
force-pushed
the
require-install-script-approval
branch
from
October 6, 2026 12:03
ab75119 to
68af881
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Only reviewed dependencies may run install scripts, using npm's
allowScriptsandstrict-allow-scripts. Both current ones come in through Jest:unrs-resolveris approved, pinned to its reviewed version. Its postinstall checks for its platform's native binding and downloads it if missing.@parcel/watcheris denied. Its install script only builds from source whennpm_config_build_from_sourceis set; otherwise the prebuilt binary comes from an optional platform package.Updating
unrs-resolverfails the install until it's re-approved withnpm approve-scripts unrs-resolver, which is noted in AGENTS.md..npmrcisn't infiles, and npm only readsallowScriptsfrom the root project, so consumers aren't affected.npm 11.19+ enforces it, which covers the Node 24 and 26 CI jobs. Node 22's npm 10 warns about an unknown config and ignores it.
🤖 Generated with Claude Code