Skip to content

Commit

Permalink
add and wire up 2022 test set
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <[email protected]>
  • Loading branch information
willmurphyscode committed Sep 24, 2024
1 parent 582f9a4 commit b710e11
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/quality/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,22 @@ validate: venv $(VULNERABILITY_LABELS)/Makefile ## Run all quality checks agains
.PHONY: capture
capture: sboms vulns ## Collect and store all syft and grype results

.PHONY: capture
.PHONY: vulns
vulns: venv $(TEST_DB) ## Collect and store all grype results
$(YARDSTICK) -v result capture -r $(RESULT_SET)
$(YARDSTICK) -v result capture -r $(RESULT_SET)_2022

$(TEST_DB):
@curl -o $(TEST_DB) -SsL $(TEST_DB_URL)

.PHONY: sboms
sboms: $(YARDSTICK_RESULT_DIR) venv clear-results ## Collect and store all syft results (deletes all existing results)
bash -c "make download-sboms || ($(YARDSTICK) -v result capture -r $(RESULT_SET) --only-producers)"
bash -c "make download-sboms || ($(YARDSTICK) -v result capture -r $(RESULT_SET) --only-producers && $(YARDSTICK) -v result capture -r $(RESULT_SET)_2022 --only-producers)"

.PHONY: download-sboms
download-sboms: $(VULNERABILITY_LABELS)/Makefile
cd vulnerability-match-labels && make venv
bash -c "export ORAS_CACHE=$(shell pwd)/.oras-cache && make venv && . vulnerability-match-labels/venv/bin/activate && ./vulnerability-match-labels/sboms.py download -r $(RESULT_SET)"
bash -c "export ORAS_CACHE=$(shell pwd)/.oras-cache && make venv && . vulnerability-match-labels/venv/bin/activate && ./vulnerability-match-labels/sboms.py download -r $(RESULT_SET) && ./vulnerability-match-labels/sboms.py download -r $(RESULT_SET)_2022"

venv: venv/touchfile

Expand Down

0 comments on commit b710e11

Please sign in to comment.