Skip to content

Commit 5bcc195

Browse files
authored
chore: add pnpm security settings for supply chain attack prevention (#828)
1 parent 0225b91 commit 5bcc195

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"apps/*",
88
"docs"
99
],
10-
"packageManager": "pnpm@10.24.0",
10+
"packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264",
1111
"scripts": {
1212
"build": "pnpm run --filter '*' build",
1313
"docs:dev": "pnpm run --filter docs dev",

pnpm-workspace.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,17 @@ enablePrePostScripts: true
7575

7676
minimumReleaseAge: 2880
7777

78-
onlyBuiltDependencies:
79-
- esbuild
80-
- sharp
81-
- sqlite3
82-
- workerd
78+
# Security settings for supply chain attack prevention
79+
strictDepBuilds: true
80+
blockExoticSubdeps: true
81+
trustPolicy: no-downgrade
82+
83+
# Explicitly allow build scripts for packages that require them
84+
# (replaces onlyBuiltDependencies)
85+
allowBuilds:
86+
esbuild: true
87+
sharp: true
88+
sqlite3: true
89+
workerd: true
8390

8491
shellEmulator: true

0 commit comments

Comments
 (0)