mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-17 13:32:18 +00:00
fix(ci): keep scheduled provenance audits on the verified npm toolchain
This commit is contained in:
3 files changed
+47
No files matched your search
@@ -34,7 +34,16 @@ jobs:
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: '20.x'
|
||||
- name: Install pinned npm provenance verifier
|
||||
env:
|
||||
npm_config_cache: ${{ runner.temp }}/ecc-security-npm-cache
|
||||
run: |
|
||||
npm install --global npm@11.21.2 --ignore-scripts --no-audit --no-fund
|
||||
test "$(npm --version)" = "11.21.2"
|
||||
|
||||
- name: Run security audit
|
||||
env:
|
||||
npm_config_cache: ${{ runner.temp }}/ecc-security-npm-cache
|
||||
run: |
|
||||
if [ -f package-lock.json ]; then
|
||||
npm ci --ignore-scripts
|
||||
|
||||
@@ -29,10 +29,21 @@ jobs:
|
||||
with:
|
||||
node-version: '20.x'
|
||||
|
||||
- name: Install pinned npm provenance verifier
|
||||
env:
|
||||
npm_config_cache: ${{ runner.temp }}/ecc-security-npm-cache
|
||||
run: |
|
||||
npm install --global npm@11.21.2 --ignore-scripts --no-audit --no-fund
|
||||
test "$(npm --version)" = "11.21.2"
|
||||
|
||||
- name: Install dependencies without lifecycle scripts
|
||||
env:
|
||||
npm_config_cache: ${{ runner.temp }}/ecc-security-npm-cache
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
- name: Verify registry signatures and advisories
|
||||
env:
|
||||
npm_config_cache: ${{ runner.temp }}/ecc-security-npm-cache
|
||||
run: |
|
||||
npm audit signatures
|
||||
npm audit --omit=dev --audit-level=high
|
||||
|
||||
Reference in new issue
Block a user