Skip to content

Commit

Permalink
fix: audit command
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Oct 31, 2023
1 parent 2669daa commit c35c11e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ create-tmp-env-ci:
. ./.env && \
envsubst < ./.env.ci > tmp.env.ci

# 16 is exit code for critical https://classic.yarnpkg.com/lang/en/docs/cli/audit
audit:
bash -c 'pnpm audit --audit-level critical; [[ $$? -ge 16 ]] && exit 1 || exit 0'
bash -c 'pnpm audit --audit-level critical --ignore-registry-errors --json | jq -e ".metadata.vulnerabilities.critical > 0" && exit 1 || exit 0'

mine-block:
container_id=$$(docker ps -q -f status=running -f name="bitcoind-1"); \
Expand Down

0 comments on commit c35c11e

Please sign in to comment.