chore: harden npm install defaults#2
Conversation
|
Heartbeat update: I extended this npm hardening PR beyond root .npmrc defaults to remove the risky bash publish lifecycle from the npm package. New head daa2751 changes npm/package.json from |
|
Updated this PR with commit
Verification run:
PR still shows OPEN/MERGEABLE/UNSTABLE with no surfaced check rollup; the known Python import fix remains isolated in PR #1. |
|
Re-verified this npm hardening branch at head Local gates passed:
GitHub still reports the PR as OPEN/MERGEABLE/UNSTABLE with no surfaced status checks, so I do not see a local code or supply-chain scanner failure here; remaining work looks like maintainer/check resolution. |
Summary
.npmrcdefaults that reduce npm supply-chain blast radius.ignore-scripts=true).save-exact=true).Why
Recent npm worm/supply-chain campaigns abuse install/publish lifecycle hooks and ambient tokens. This makes the safe path the default; projects that truly need lifecycle scripts can still run reviewed scripts explicitly.
Verification
git diff --checkGenerated by Sedge for Fielding's npm supply-chain hardening sweep.