From ea90b497f7844abdf122858c4b55d943a707dd25 Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Wed, 24 Apr 2024 20:05:04 +0000 Subject: [PATCH] move compare.tmpl --- hack/check-vulnerabilities.sh | 4 ++-- hack/{.templates => }/compare.tmpl | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename hack/{.templates => }/compare.tmpl (100%) diff --git a/hack/check-vulnerabilities.sh b/hack/check-vulnerabilities.sh index d0ecb3aa0d..903e59a01a 100755 --- a/hack/check-vulnerabilities.sh +++ b/hack/check-vulnerabilities.sh @@ -12,8 +12,8 @@ git checkout $MAIN_BRANCH go run main.go tools sbom scan . -o json --exclude './site' --exclude './examples' > build/main-syft.json git checkout $TARGET_BRANCH -cat build/main-syft.json | grype -o template -t hack/.templates/compare.tmpl > build/main.json -go run main.go tools sbom scan . -o json --exclude './site' --exclude './examples' | grype -o template -t hack/.templates/compare.tmpl > build/target.json +cat build/main-syft.json | grype -o template -t hack/compare.tmpl > build/main.json +go run main.go tools sbom scan . -o json --exclude './site' --exclude './examples' | grype -o template -t hack/compare.tmpl > build/target.json result=$(jq --slurp '.[0] - .[1]' build/target.json build/main.json | jq '[.[] | select(.severity != "Low" and .severity != "Medium")]') diff --git a/hack/.templates/compare.tmpl b/hack/compare.tmpl similarity index 100% rename from hack/.templates/compare.tmpl rename to hack/compare.tmpl