Skip to content

chore(ci): pin npm to 12.0.2 and add supply-chain cooldown - #1180

Open
gilescope wants to merge 1 commit into
mainfrom
giles-npm-hardening
Open

chore(ci): pin npm to 12.0.2 and add supply-chain cooldown#1180
gilescope wants to merge 1 commit into
mainfrom
giles-npm-hardening

Conversation

@gilescope

@gilescope gilescope commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Supply-chain hardening following the 2026-08-04 keyv/cacheable npm worm (868+ packages compromised via preinstall payloads published through legitimate maintainer accounts).

  • Pin the npm CLI to 12.0.2 in CI (npm 12 blocks dependency lifecycle scripts by default behind allowScripts) instead of floating npm@latest/setup-node default
  • Bump node-version where npm 12 requires it (engines: ^22.22.2 || ^24.15.0 || >=26)
  • Add .npmrc cooldown: min-release-age=7 so freshly-published (potentially wormed) versions can't resolve for 7 days; @midnight-ntwrk/* and @midnightntwrk/* exempt so same-day internal releases still install
  • Renovate: npm CLI pins in workflows/Earthfiles are matched by new custom managers in midnightntwrk/renovate-config, so this pin stays bumpable automatically

…about version number.

Signed-off-by: Giles Cope <gilescope@gmail.com>
@gilescope
gilescope requested review from a team as code owners August 5, 2026 10:11
@vercel

vercel Bot commented Aug 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
midnight-wiki Ready Ready Preview Aug 5, 2026 10:17am

Request Review

@gilescope
gilescope marked this pull request as draft August 5, 2026 10:15
@gilescope gilescope added the ai-assisted Created or modified with AI assistance label Aug 5, 2026
@gilescope
gilescope marked this pull request as ready for review August 5, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-assisted Created or modified with AI assistance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant