From c35c11edd0af0174f7126d9d1e4c1f15a875d1ff Mon Sep 17 00:00:00 2001 From: Juan P Lopez Date: Mon, 30 Oct 2023 21:30:39 -0500 Subject: [PATCH] fix: audit command --- core/api/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/api/Makefile b/core/api/Makefile index 883b9b9f29..5a42328859 100644 --- a/core/api/Makefile +++ b/core/api/Makefile @@ -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"); \