From 268617f70b67ea3c26d67922a4f56c5119352058 Mon Sep 17 00:00:00 2001 From: chenk Date: Wed, 22 Nov 2023 08:32:19 +0200 Subject: [PATCH] fix: exclude bom info on namespace scope Signed-off-by: chenk --- pkg/k8s/commands/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/k8s/commands/cluster.go b/pkg/k8s/commands/cluster.go index 1fec319e6449..9d29e43b9dc9 100644 --- a/pkg/k8s/commands/cluster.go +++ b/pkg/k8s/commands/cluster.go @@ -23,7 +23,7 @@ func clusterRun(ctx context.Context, opts flag.Options, cluster k8s.Cluster) err var err error switch opts.Format { case types.FormatCycloneDX: - artifacts, err = trivyk8s.New(cluster, log.Logger).ListBomInfo(ctx) + artifacts, err = trivyk8s.New(cluster, log.Logger).ListClusterBomInfo(ctx) if err != nil { return xerrors.Errorf("get k8s artifacts with node info error: %w", err) }