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)