Remove trivy cache from checkout folder

The release process is producing a local image and scanning it
with trivy before continuing the process.

As trivy is by default having its cache in the checked out folder
for the code, the git repository ends up having content, and
considered dirty by goreleaser.

This is a problem, as goreleaser does not want to release if the
git tree is dirty.

This fixes it by ignoring all changes in .cache folder.

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
This commit is contained in:
Jean-Philippe Evrard
2026-06-30 13:11:58 +02:00
parent a21f48bd79
commit 32c87fc982
+1
View File
@@ -5,3 +5,4 @@ dist
.tmp/goreleaser
test.json
tests/kind/testfiles/*.yaml
/.cache/