Skip to content

Commit

Permalink
fix: exclude bom info on namespace scope
Browse files Browse the repository at this point in the history
Signed-off-by: chenk <[email protected]>
  • Loading branch information
chen-keinan committed Nov 28, 2023
1 parent 075d8f6 commit 268617f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8s/commands/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 268617f

Please sign in to comment.