Skip to content

Add hardened .npmrc for supply-chain security#81

Closed
karanshah-browserstack wants to merge 1 commit into
mainfrom
aps-19732-npmrc-hardening
Closed

Add hardened .npmrc for supply-chain security#81
karanshah-browserstack wants to merge 1 commit into
mainfrom
aps-19732-npmrc-hardening

Conversation

@karanshah-browserstack

@karanshah-browserstack karanshah-browserstack commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Adds a hardened .npmrc enforcing npm supply-chain best practices:

ignore-scripts=true
strict-ssl=true
save-exact=true
engine-strict=true
legacy-peer-deps=false
audit-level=high

Notes:

  • ignore-scripts=true skips this package's own postinstall (npm update browserstack-node-sdk), so the SDK stays pinned to the lockfile version — more reproducible installs.
  • Verified: npm ci against the committed package-lock.json on Node 18, 20, and 22 (Node 16 unsupported by current Playwright) — lockfile unchanged; sample test run verified.

🤖 Generated with Claude Code

Add supply-chain hardening .npmrc with directives required by the
weekly Enigma audit (SC-12282): ignore-scripts, strict-ssl, save-exact,
engine-strict, legacy-peer-deps=false, audit-level=high.

Verified via npm ci on Node 18/20/22 (lockfile unchanged) and e2e
sample-test on Node 20. Node 16 fails engine-strict by design
(@playwright/test requires node>=18).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@karanshah-browserstack karanshah-browserstack requested a review from a team as a code owner June 11, 2026 05:45
@karanshah-browserstack karanshah-browserstack deleted the aps-19732-npmrc-hardening branch June 11, 2026 06:09
@karanshah-browserstack karanshah-browserstack changed the title APS-19732: add hardened .npmrc (supply-chain audit SC-12282) Add hardened .npmrc for supply-chain security Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant