test: set dummy value for NUGET_PACKAGES (#8107)

Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
This commit is contained in:
Nikita Pivkin
2024-12-16 19:00:10 +06:00
committed by GitHub
parent f0b3a99bf2
commit 17827db6a9

View File

@@ -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