Skip to content

Add npm-script-lens to Security Hardening 馃馃馃 - #154

Open
Booyaka101 wants to merge 1 commit into
lirantal:mainfrom
Booyaka101:add-npm-script-lens
Open

Add npm-script-lens to Security Hardening 馃馃馃#154
Booyaka101 wants to merge 1 commit into
lirantal:mainfrom
Booyaka101:add-npm-script-lens

Conversation

@Booyaka101

Copy link
Copy Markdown
Contributor

Adds npm-script-lens to Security Hardening, alongside the existing @lavamoat/allow-scripts and are-scripts-enabled entries.

npm 12, pnpm 10.26+, yarn Berry and bun have all made install scripts opt-in, which leaves maintainers looking at a list of package names asking which are safe to allow. This answers that with evidence rather than a name: it statically analyses the script source with acorn (following node <file> targets, node -e bodies and npm run recursion), reads inside binding.gyp because gyp executes command expansions at configure time, and resolves the npm provenance attestation to its build identity so an upgrade that changes source repo or workflow shows up.

Disclosure: I am the author, and this PR was prepared by an AI agent, opted into the agent process with 馃馃馃 per CONTRIBUTING.md.

Against the guidelines: searched for duplicates first (none), added to the end of its list, individual PR for this single suggestion, description starts with a capital and ends with a period, no trailing whitespace.

@lirantal lirantal self-assigned this Aug 14, 2026
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.

2 participants