cli: help message for --scanners
flag does not match actual behavior for trivy k8s
#5538
Closed
1 of 2 tasks
Labels
kind/bug
Categorizes issue or PR as related to a bug.
target/kubernetes
Issues relating to kubernetes cluster scanning
The default value defines the type of flag, so it must be a list. https://github.com/aquasecurity/trivy/blob/main/pkg/commands/app.go#L865
Also the list of allowed values should be overridden for the flag (add rbac and remove license?).
Discussed in #5527
Originally posted by tjanson November 6, 2023
Description
The help message for the CLI arg
--scanners
reads as follows:I.e., the following should be valid values:
rbac
vuln,config
Neither works:
It seems
--scanners
only accepts single values, and it seemsrbac
is no longer (?) a valid value.Desired Behavior
Adjust help message or accept args as described, whichever is desired.
Actual Behavior
see above
Reproduction Steps
Target
Kubernetes
Scanner
see above
Operating System
macOS 14
Version
Checklist
trivy image --reset
The text was updated successfully, but these errors were encountered: