Skip to content

Commit 382072c

Browse files
authored
chore(workspace): block exotic subdeps (#1303)
Refuse transitive dependencies declared via git/tarball/local-tarball specs. An npm package shouldn't drag in a git URL we don't control (bypasses npm registry validation, no provenance, no soak window). Direct git deps are still allowed. pnpm's current default is false; declared explicitly so a future flip can't silently change install behavior.
1 parent d5a6f46 commit 382072c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pnpm-workspace.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,15 @@ minimumReleaseAgeExclude:
165165
- '@socketregistry/*'
166166
- '@socketsecurity/*'
167167

168+
# Refuse transitive dependencies declared via git/tarball/local-tarball
169+
# specs — an npm package shouldn't be allowed to drag in a git URL we
170+
# don't control (bypasses npm registry validation, no provenance, no
171+
# soak window). Direct git deps are still allowed (the test suite at
172+
# pnpm/pkg-manager/core/test/install/blockExoticSubdeps.ts confirms
173+
# this). pnpm's current default is `false`; declared explicitly so a
174+
# future flip can't silently change install behavior.
175+
blockExoticSubdeps: true
176+
168177
# Dependency overrides (migrated from package.json pnpm.overrides).
169178
overrides:
170179
'@octokit/graphql': 'catalog:'

0 commit comments

Comments
 (0)