test(k8s): use a specific bundle for k8s misconfig scan (#9633)

This commit is contained in:
afdesk
2025-10-10 16:49:25 +06:00
committed by GitHub
parent 6e53686526
commit 492797b1c7

View File

@@ -28,11 +28,14 @@ func TestK8s(t *testing.T) {
// Set up the output file
outputFile := filepath.Join(t.TempDir(), "output.json")
// it uses a fixed version of trivy-checks bundle - v1.11.2
// its hash is sha256:f3ea8227f838a985f0c884909e9d226362f5fc5ab6021310a179fbb24c5b57fd
osArgs := []string{
"--cache-dir", cacheDir,
"k8s",
"kind-kind-test",
"--report", "summary",
"--checks-bundle-repository", "mirror.gcr.io/aquasec/trivy-checks:1.11.2@sha256:f3ea8227f838a985f0c884909e9d226362f5fc5ab6021310a179fbb24c5b57fd",
"-q",
"--timeout", "5m0s",
"--format", "json",