Skip to content

Commit c237a4e

Browse files
authored
Merge pull request #57 from palantirnet/npm-supply-chain
SI-460: Mitigate node/npm supply chain attacks by disabling lifecycle scripts and git dependencies.
2 parents 7feeeae + f1d0e6f commit c237a4e

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Disable lifecycle scripts to mitigate supply chain attacks.
2+
ignore-scripts = true
3+
4+
# Disable git repositories as package sources to mitigate supply chain attacks.
5+
allow-git = root

.yarnrc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Legacy node_modules behavior.
2+
nodeLinker: node-modules
3+
4+
# Disable lifecycle scripts to mitigate supply chain attacks.
5+
enableScripts: false
6+
7+
# Disable git repositories as package sources to mitigate supply chain attacks.
8+
approvedGitRepositories: [ ]

0 commit comments

Comments
 (0)