diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 3ca3027..99a5a70 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -34,7 +34,8 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' + # Read the version from .nvmrc so CI matches engines.node (engine-strict=true in .npmrc) + node-version-file: '.nvmrc' - name: Install dependencies run: | diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..d75228e --- /dev/null +++ b/.npmrc @@ -0,0 +1,10 @@ +# Supply-chain security hardening +# Required by the BrowserStack supply-chain .npmrc audit (Enigma / SC-12282). +# See: https://browserstack.atlassian.net/wiki/spaces/ENG/pages/6091571922/Supply+Chain+Security+Enhancements+Tech+Spec + +ignore-scripts=true # blocks malicious package lifecycle scripts +strict-ssl=true # enforces TLS for registry connections +save-exact=true # pins exact dependency versions +audit-level=high # fail on high+ severity advisories +engine-strict=true # refuse incompatible Node engines +legacy-peer-deps=false # preserve npm 7+ peer-dependency resolution