Skip to content

Commit 11f1fb4

Browse files
amitsi-bsclaude
andcommitted
LTS-3294: add supply-chain hardened .npmrc
Adds the .npmrc required by the weekly SC-12282 supply-chain audit. Enables strict-ssl, save-exact, audit-level=high, legacy-peer-deps=false. ignore-scripts and engine-strict are deferred (documented in-file): ignore-scripts would disable this repo's `postinstall: npm update browserstack-node-sdk`; engine-strict would break `npm install` for customers on varied Node versions. access=restricted omitted (public repo). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bcc1997 commit 11f1fb4

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.npmrc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Supply-chain hardening directives (SC-12282 / LTS-3294)
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 intentionally DEFERRED. This repo ships its own
8+
# postinstall (`npm update browserstack-node-sdk`) so the sample always runs the
9+
# latest SDK; enabling ignore-scripts would silently disable it. Re-enable once
10+
# the sample pins the SDK and drops the postinstall.
11+
#
12+
# engine-strict=true is intentionally DEFERRED. Customers clone and run this
13+
# sample on a wide range of Node versions; hard EBADENGINE enforcement on
14+
# transitive deps would break `npm install` for them. Kept as a warning.
15+
16+
strict-ssl=true
17+
save-exact=true
18+
audit-level=high
19+
legacy-peer-deps=false

0 commit comments

Comments
 (0)