Skip to content

Commit 3813bac

Browse files
committed
Mitigate npm supply-chain attacks via .npmrc file
- Add `ignore-scripts=true` to prevent execution of `postinstall` and other lifecycle scripts, supply-chain attack protection. - Add `min-release-age=7` to avoids packages uploaded in the last 7 days, supply-chain attack protection. (Requires npm >= 11.10.0) - Add `package-lock=true` to ensure consistent dependency resolution across environments. Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
1 parent 80c9204 commit 3813bac

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ignore-scripts=true
2+
min-release-age=7
3+
package-lock=true

0 commit comments

Comments
 (0)