Install osqtool (unversioned at the moment)

This commit is contained in:
Thomas Stromberg 2022-10-13 10:04:18 -04:00
parent 97343fc348
commit 220dfc74ea
Failed to extract signature
1 changed files with 9 additions and 8 deletions

View File

@ -1,14 +1,15 @@
out/odk-detection.sql: out/osqtool:
mkdir -p out mkdir -p out
osqtool pack detection/ > out/odk-detection.conf GOBIN=$(CURDIR)/out go install github.com/chainguard-dev/osqtool/cmd/osqtool@latest
out/odk-policy.sql: out/odk-detection.sql: out/osqtool
mkdir -p out ./out/osqtool pack detection/ > out/odk-detection.conf
osqtool pack policy/ > out/odk-policy.conf
out/odk-incident_response.sql: out/odk-policy.sql: out/osqtool
mkdir -p out ./out/osqtool pack policy/ > out/odk-policy.conf
osqtool pack incident_response/ > out/odk-incident_response.conf
out/odk-incident_response.sql: out/osqtool
./out/osqtool pack incident_response/ > out/odk-incident_response.conf
packs: out/odk-detection.sql out/odk-policy.sql out/odk-incident_response.sql packs: out/odk-detection.sql out/odk-policy.sql out/odk-incident_response.sql