diff --git a/integration/repo_test.go b/integration/repo_test.go index 87c27684d3ab..0f73978da31f 100644 --- a/integration/repo_test.go +++ b/integration/repo_test.go @@ -16,6 +16,7 @@ import ( // TestRepository tests `trivy repo` with the local code repositories func TestRepository(t *testing.T) { + t.Setenv("NUGET_PACKAGES", t.TempDir()) type args struct { scanner types.Scanner ignoreIDs []string