-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpnpm-workspace.yaml
More file actions
30 lines (24 loc) · 920 Bytes
/
Copy pathpnpm-workspace.yaml
File metadata and controls
30 lines (24 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# npm security best practices
# Source: https://github.com/lirantal/npm-security-best-practices
# SECURITY: block packages newer than 1 day (1440 minutes, pnpm 11 default)
# See the recent supply chain attacks to see why this is a good idea.
minimumReleaseAge: 1440
# SECURITY: reject a version whose publishing trust signals regressed
trustPolicy: no-downgrade
# SECURITY: keep strict overrides only when necessary and vetted
# trustPolicyExclude:
# - 'chokidar@4.0.3'
# - 'webpack@4.47.0 || 5.102.1'
# SECURITY: pnpm blocks install scripts by default, enabled explicitly for:
allowBuilds:
cpu-features: true
esbuild: true
protobufjs: true
rolldown: true
ssh2: true
unrs-resolver: true
# SECURITY: fail the install if a dependency wants to run a build
# script that isn't in the allow-list above
strictDepBuilds: true
# SECURITY: reject dependencies sourced from git URLs
blockExoticSubdeps: true