Skip to content

Commit 8efaf35

Browse files
authored
Add approvedGitRepositories to Yarn config (#310)
1 parent 2321b89 commit 8efaf35

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

.yarnrc.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1+
# Allowlist for Git repositories that can be used as dependencies. We set it to
2+
# an empty array to disallow all Git dependencies, as we don't use any and they
3+
# can be a security risk.
4+
approvedGitRepositories: []
5+
16
compressionLevel: mixed
27

38
enableGlobalCache: false
49

510
enableScripts: false
611

7-
enableTelemetry: 0
12+
enableTelemetry: false
813

914
logFilters:
1015
- code: YN0004
1116
level: discard
1217

13-
nodeLinker: node-modules
14-
15-
plugins:
16-
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
17-
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"
18-
1918
# Configure the NPM minimal age gate to 3 days, meaning packages must be at
2019
# least 3 days old to be installed.
2120
npmMinimalAgeGate: 4320 # 3 days (in minutes)
@@ -26,3 +25,9 @@ npmPreapprovedPackages:
2625
- '@metamask/*'
2726
- '@metamask-previews/*'
2827
- '@lavamoat/*'
28+
29+
nodeLinker: node-modules
30+
31+
plugins:
32+
- path: .yarn/plugins/@yarnpkg/plugin-allow-scripts.cjs
33+
spec: "https://raw.githubusercontent.com/LavaMoat/LavaMoat/main/packages/yarn-plugin-allow-scripts/bundles/@yarnpkg/plugin-allow-scripts.js"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"engines": {
8585
"node": "^20 || ^22 || >=24"
8686
},
87-
"packageManager": "yarn@4.10.3",
87+
"packageManager": "yarn@4.14.1",
8888
"lavamoat": {
8989
"allowScripts": {
9090
"@lavamoat/preinstall-always-fail": false,

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Manual changes might be lost - proceed with caution!
33

44
__metadata:
5-
version: 8
5+
version: 9
66
cacheKey: 10
77

88
"@aashutoshrathi/word-wrap@npm:^1.2.3":

0 commit comments

Comments
 (0)