mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
fix: k8s hide empty report when scanning resource (#2517)
Signed-off-by: Jose Donizetti <jdbjunior@gmail.com>
This commit is contained in:
@@ -33,7 +33,7 @@ func resourceRun(ctx context.Context, args []string, opts flag.Options, cluster
|
||||
return err
|
||||
}
|
||||
|
||||
return run(ctx, opts, cluster.GetCurrentContext(), targets)
|
||||
return run(ctx, opts, cluster.GetCurrentContext(), targets, false)
|
||||
}
|
||||
|
||||
// pod/NAME or pod NAME etc
|
||||
@@ -42,7 +42,7 @@ func resourceRun(ctx context.Context, args []string, opts flag.Options, cluster
|
||||
return err
|
||||
}
|
||||
|
||||
return run(ctx, opts, cluster.GetCurrentContext(), []*artifacts.Artifact{artifact})
|
||||
return run(ctx, opts, cluster.GetCurrentContext(), []*artifacts.Artifact{artifact}, false)
|
||||
}
|
||||
|
||||
func extractKindAndName(args []string) (string, string, error) {
|
||||
|
||||
Reference in New Issue
Block a user