Skip to content

Commit 0282c68

Browse files
committed
CSCEXAM-000 Security hardening regarding npm
1 parent 4daab0e commit 0282c68

File tree

3 files changed

+406
-514
lines changed

3 files changed

+406
-514
lines changed

.npmrc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-FileCopyrightText: 2024 The members of the EXAM Consortium
2+
#
3+
# SPDX-License-Identifier: EUPL-1.2
4+
5+
# --- Security ---
6+
# Disable scripts from dependencies (the dangerous ones)
7+
ignore-scripts=true
8+
9+
# Enforce consistent dependency graph
10+
strict-peer-deps=true
11+
12+
# Keep audit warnings enabled
13+
audit=true
14+
15+
# Prevent execution of install scripts from *transitive* deps
16+
# (Angular typically does NOT depend on packages requiring install scripts)
17+
script-shell=bash
18+
19+
# Don't allow NPM to use unsafe redirects
20+
strict-ssl=true
21+
22+
# Don’t overwrite environment PATH unexpectedly
23+
bin-links=true
24+
25+
# --- Project behaviour ---
26+
# Prefer deterministic installs
27+
save-exact=false

0 commit comments

Comments
 (0)