Skip to content

Commit 85abccb

Browse files
committed
dev: delete fanal.db before tests
Signed-off-by: Nikita Pivkin <nikita.pivkin@smartforce.io>
1 parent a169870 commit 85abccb

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ BATS_ENV := BATS_LIB_PATH=$(BATS_LIB_PATH) \
1616
BATS_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+
2831
bump-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}');\

test/data/secret-scan/report.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
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",

0 commit comments

Comments
 (0)