File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,15 +16,18 @@ BATS_ENV := BATS_LIB_PATH=$(BATS_LIB_PATH) \
1616BATS_FLAGS := --recursive --timing --verbose-run .
1717
1818.PHONY : test
19- test :
20- mkdir -p .cache
19+ test : init-cache
2120 $(BATS_ENV ) bats $(BATS_FLAGS )
2221
2322.PHONY : update-golden
24- update-golden :
25- mkdir -p .cache
23+ update-golden : init-cache
2624 UPDATE_GOLDEN=1 $(BATS_ENV ) bats $(BATS_FLAGS )
2725
26+ .PHONY : init-cache
27+ init-cache :
28+ mkdir -p .cache
29+ rm -f .cache/fanal/fanal.db
30+
2831bump-trivy :
2932 @[ $$ NEW_VERSION ] || ( echo " env 'NEW_VERSION' is not set" ; exit 1 )
3033 @CURRENT_VERSION=$$(grep "TRIVY_VERSION:" .github/workflows/test.yaml | awk '{print $$2}' ) ; \
Original file line number Diff line number Diff line change 22 "SchemaVersion" : 2 ,
33 "ArtifactName" : " https://github.com/krol3/demo-trivy/" ,
44 "ArtifactType" : " repository" ,
5+ "Metadata" : {
6+ "RepoURL" : " https://github.com/krol3/demo-trivy/" ,
7+ "Branch" : " main" ,
8+ "Commit" : " 547db823c73fdb3385871f6235e946c72291f734" ,
9+ "CommitMsg" : " chore: add gitignore" ,
10+ "Author" : " carolina valencia <krol3@users.noreply.github.com>" ,
11+ "Committer" : " carolina valencia <krol3@users.noreply.github.com>"
12+ },
513 "Results" : [
614 {
715 "Target" : " env" ,
You can’t perform that action at this time.
0 commit comments