Skip to content

Commit

Permalink
move compare.tmpl
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinAbro321 committed Apr 24, 2024
1 parent 4e66ba2 commit ea90b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hack/check-vulnerabilities.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")]')
Expand Down
File renamed without changes.

0 comments on commit ea90b49

Please sign in to comment.