Skip to content

chore: harden npm install defaults#12

Open
sedge-bot wants to merge 1 commit into
fielding:mainfrom
sedge-bot:sedge/npm-supply-chain-hardening
Open

chore: harden npm install defaults#12
sedge-bot wants to merge 1 commit into
fielding:mainfrom
sedge-bot:sedge/npm-supply-chain-hardening

Conversation

@sedge-bot
Copy link
Copy Markdown

Summary

  • Adds root .npmrc defaults that reduce npm supply-chain blast radius.
  • Disables implicit install lifecycle scripts by default (ignore-scripts=true).
  • Pins newly saved dependency versions exactly (save-exact=true).
  • Keeps npm audit enabled and disables funding noise.

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 --check
  • Static exposure scan of the PR diff for token/secret patterns

Generated by Sedge for Fielding's npm supply-chain hardening sweep.

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