Skip to content

Commit 8fae217

Browse files
authored
Merge pull request #15 from browserstack/sec/LTS-3294-npmrc-hardening
LTS-3294: add supply-chain hardened .npmrc
2 parents bcc1997 + 2de4099 commit 8fae217

4 files changed

Lines changed: 2341 additions & 1341 deletions

File tree

.npmrc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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 now safe: browserstack-node-sdk is pinned directly in
8+
# package.json to 1.60.1 — the version the Playwright BLU runner enforces in prod
9+
# (docker-selenium/Playwright/download-test.js SDK_VERSION on lts-main) — so the old
10+
# `postinstall: npm update browserstack-node-sdk` (the only install-script this
11+
# sample needed) has been removed.
12+
#
13+
# engine-strict=true enforces the package.json `engines.node` floor (>=18), which
14+
# matches the Node version in our runner pod and what Playwright + the SDK already
15+
# require. Customers on EOL Node (<18) get a clear upgrade message instead of an
16+
# obscure runtime failure.
17+
18+
strict-ssl=true
19+
save-exact=true
20+
audit-level=high
21+
legacy-peer-deps=false
22+
ignore-scripts=true
23+
engine-strict=true
24+
min-release-age=7

browserstack-load.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ testName: Default Test
2222
# Set 'testType' to the type of load test that you want to execute. Example:'Playwright', 'Selenium'. This is a required parameter.
2323
testType: Playwright
2424

25-
# Set 'vus' to the maximum number of virtual users to simulate during the test.
25+
# Set 'vus' to the maximum number of virtual users to simulate during the test.
2626
vus: 1
2727

28-
# Set multiple regions from which you would want to generate the load (percent should total 100 across all loadzones).
28+
# Set 'duration' to how long the load should be sustained (required). Example: '1m', '5m'.
29+
duration: 1m
30+
31+
# Set multiple regions from which you would want to generate the load (percent should total 100 across all loadzones).
2932
regions:
3033
- loadzone: us-east-1
3134
percent: 100
@@ -40,6 +43,6 @@ language: nodejs
4043
# Add list of file paths under 'testConfigs' to define which configuration files should be used to run tests. Example: path to 'playwright.config.ts' for Playwright (Node.js), path to 'testng.xml' for Selenium (TestNG).
4144
files:
4245
dependencies:
43-
- ./package.json
44-
testConfigs:
45-
- ./playwright.config.js
46+
- package.json
47+
testConfigs:
48+
- playwright.config.js

0 commit comments

Comments
 (0)