Skip to content

Add hardened .npmrc for supply-chain security#37

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

Add hardened .npmrc for supply-chain security#37
karanshah-browserstack wants to merge 1 commit into
mainfrom
aps-19731-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  (disabled — see notes)
legacy-peer-deps=false
audit-level=high

Notes:

  • ignore-scripts=true skips Cypress's postinstall binary download. Cloud runs via browserstack-cypress are unaffected; for local Cypress runs, execute npx cypress install once after npm install.
  • engine-strict is commented out because the serialize-javascript override requires Node >=20 while this sample supports Node 18; it can be enabled once that floor changes.
  • Verified: npm ci against the committed package-lock.json on Node 18, 20, and 22 — lockfile unchanged; sample test run verified.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@karanshah-browserstack karanshah-browserstack deleted the aps-19731-npmrc-hardening branch June 11, 2026 06:09
@karanshah-browserstack karanshah-browserstack changed the title APS-19731: 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