Skip to content

chore(deps): enforce dependency-safety policy via .npmrc - #148

Merged
hatton merged 1 commit into
mainfrom
supplyChainHardening
Jul 8, 2026
Merged

chore(deps): enforce dependency-safety policy via .npmrc#148
hatton merged 1 commit into
mainfrom
supplyChainHardening

Conversation

@andrew-polk

@andrew-polk andrew-polk commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Pin all dependencies to exact versions and constrain installs to reduce
supply-chain risk. Requires npm >= 11.17.0 (volta + engines bumped from
11.5.1, which predates these config keys).

.npmrc policy:

  • engine-strict + engines.npm so an old npm cannot silently bypass this
  • save-exact: never write ^/~ ranges
  • min-release-age=7: only install versions published >7 days ago
  • strict-allow-scripts: default-deny install scripts (allowScripts field
    in package.json lists @swc/core, @tailwindcss/oxide, esbuild, fsevents,
    nx, svelte-preprocess)
  • allow-git/remote/file=none, allow-directory=root: registry-only installs

Pinned 91 caret/tilde ranges across all workspace manifests to their
currently-locked versions (resolution unchanged). peerDependencies left
as ranges so published packages stay compatible across consumer versions.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com


This change is Reviewable


Devin review

@andrew-polk
andrew-polk force-pushed the supplyChainHardening branch from 4725d67 to 1187919 Compare July 7, 2026 16:10
Pin all dependencies to exact versions and constrain installs to reduce
supply-chain risk. Requires npm >= 11.17.0 (volta + engines bumped from
11.5.1, which predates these config keys).

.npmrc policy:
- engine-strict + engines.npm so an old npm cannot silently bypass this
- save-exact: never write ^/~ ranges
- min-release-age=7: only install versions published >7 days ago
- strict-allow-scripts: default-deny install scripts (allowScripts field
  in package.json lists @swc/core, @tailwindcss/oxide, esbuild, fsevents,
  nx, svelte-preprocess)
- allow-git/remote/file=none, allow-directory=root: registry-only installs

Pinned 91 caret/tilde ranges across all workspace manifests to their
currently-locked versions (resolution unchanged). peerDependencies left
as ranges so published packages stay compatible across consumer versions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@andrew-polk
andrew-polk force-pushed the supplyChainHardening branch from 1187919 to a8c4c7d Compare July 7, 2026 18:04
@andrew-polk andrew-polk self-assigned this Jul 7, 2026
@andrew-polk
andrew-polk marked this pull request as ready for review July 7, 2026 23:54

@hatton hatton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hatton reviewed 11 files and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on andrew-polk).

@hatton
hatton merged commit b2cd717 into main Jul 8, 2026
1 of 2 checks passed
@hatton
hatton deleted the supplyChainHardening branch July 8, 2026 19:38
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