Skip to content

Commit

Permalink
fix: fixed npm package audit, added new run-npm-audit option
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed May 21, 2024
1 parent ca35076 commit 6f06744
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion step/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ inputs:
description: "The npm version to use"
required: false
default: "true"
run-npm-audit:
description: "Run the audit-ci audit before we run pnpm install"
required: false
default: "true"
npm-version:
description: "The npm version to use"
required: false
Expand Down Expand Up @@ -143,8 +147,9 @@ runs:
run: "lz4 -d /tmp/nx_cache.tar.lz4 | tar -xf - ;" # decompress nx cache

- name: "Verify the integrity of provenance attestations and registry signatures for installed dependencies"
if: "inputs.run-npm-audit == 'true'"
shell: "bash"
run: "pnpm run audit --report-type=summary"
run: "pnpm dlx audit-ci@^6 --config ./audit-ci.jsonc --report-type=summary"

- name: "Install packages"
shell: "bash"
Expand Down

0 comments on commit 6f06744

Please sign in to comment.