From 32c87fc982ca74fbe7e7c7e4cd8648d5c5ad8613 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Tue, 30 Jun 2026 13:05:16 +0200 Subject: [PATCH] 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 --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 6440617..5655484 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ dist .tmp/goreleaser test.json tests/kind/testfiles/*.yaml +/.cache/