From fb0e8bfc4793c31de62739fa3f9e2c208b26cd41 Mon Sep 17 00:00:00 2001 From: vijeyash Date: Tue, 27 Feb 2024 14:41:23 +0530 Subject: [PATCH] trivy test commit --- agent/kubviz/plugins/trivy/trivy_sbom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/kubviz/plugins/trivy/trivy_sbom.go b/agent/kubviz/plugins/trivy/trivy_sbom.go index d23f4c90..2c1996a5 100644 --- a/agent/kubviz/plugins/trivy/trivy_sbom.go +++ b/agent/kubviz/plugins/trivy/trivy_sbom.go @@ -97,8 +97,8 @@ func RunTrivySbomScan(config *rest.Config, js nats.JetStreamContext) error { } for _, image := range images { - // sbomcmd := fmt.Sprintf("trivy image --format cyclonedx %s --cache-dir %s", image.PullableImage, trivySbomCacheDir) - sbomcmd := fmt.Sprintf("trivy image --format cyclonedx %s", image.PullableImage) + sbomcmd := fmt.Sprintf("trivy image --format cyclonedx %s --cache-dir %s", image.PullableImage, trivySbomCacheDir) + // sbomcmd := fmt.Sprintf("trivy image --format cyclonedx %s", image.PullableImage) out, err := executeCommandSbom(sbomcmd)