Skip to content

Commit fe9534d

Browse files
committed
Opt in to npm v11 supply-chain security features
Mirrors #78191 (min-release-age): contributors running npm v11 get the hardening locally, while npm v10 (still used in CI) ignores the settings. - .npmrc: allow-git=none, allow-remote=none - package.json: allowScripts deny-by-default policy; esbuild is allowed to avoid npm/cli#9681 (denying a script also drops the package's bin link) - package-lock.json: drop a stale extraneous esbuild entry strict-allow-scripts is intentionally left off until CI runs npm v11.
1 parent 484eecc commit fe9534d

3 files changed

Lines changed: 16 additions & 43 deletions

File tree

‎.npmrc‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ legacy-peer-deps = true
33
prefer-dedupe = true
44
lockfile-version = 3
55
min-release-age = 1
6+
# do not allow git dependencies
7+
allow-git = none
8+
# do not allow dependencies from unknown remote sources
9+
allow-remote = none

‎package-lock.json‎

Lines changed: 0 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,5 +222,16 @@
222222
"test/unit",
223223
"tools/*",
224224
"widgets/*"
225-
]
225+
],
226+
"allowScripts": {
227+
"@parcel/watcher": false,
228+
"core-js": false,
229+
"core-js-pure": false,
230+
"esbuild": false,
231+
"fs-ext": false,
232+
"fsevents": false,
233+
"leveldown": true,
234+
"nx": false,
235+
"unrs-resolver": false
236+
}
226237
}

0 commit comments

Comments
 (0)