Skip to content

Commit d4988e7

Browse files
authored
Merge pull request #15 from browserstack/sec/LTS-3295-npmrc-hardening
LTS-3295: add supply-chain hardened .npmrc
2 parents 719e5cf + 7ce26c6 commit d4988e7

3 files changed

Lines changed: 1945 additions & 1487 deletions

File tree

.npmrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Supply-chain hardening directives (SC-12282 / LTS-3295)
2+
# See: https://browserstack.atlassian.net/wiki/spaces/ENG/pages/6091571922/Supply+Chain+Security+Enhancements+Tech+Spec
3+
#
4+
# access=restricted is intentionally OMITTED — this is a public, customer-facing
5+
# sample repository, not a published private package.
6+
#
7+
# ignore-scripts=true is now safe: these tests run remotely on BrowserStack, and
8+
# Edge/Gecko are not supported on our platform, so the local driver-binary
9+
# postinstalls (edgedriver/geckodriver) are not needed. browserstack-node-sdk is
10+
# pinned to the latest release (1.61.0) so no update-postinstall is needed either.
11+
#
12+
# engine-strict=true enforces the package.json `engines.node` floor (>=18), which
13+
# matches our runner pod and what @wdio/cli 9 already requires. Customers on EOL
14+
# Node (<18) get a clear upgrade message instead of obscure failures.
15+
16+
strict-ssl=true
17+
save-exact=true
18+
audit-level=high
19+
legacy-peer-deps=false
20+
ignore-scripts=true
21+
engine-strict=true
22+
min-release-age=7

0 commit comments

Comments
 (0)