BREAKING: add new classes for vulnerabilities (#2541)

This commit is contained in:
Teppei Fukuda
2022-07-31 10:47:08 +03:00
committed by GitHub
parent 3cd88abec5
commit f396c677a2
51 changed files with 332 additions and 214 deletions

View File

@@ -240,7 +240,7 @@ func NewImageCommand(globalFlags *flag.GlobalFlagGroup) *cobra.Command {
$ trivy image --format json --output result.json alpine:3.15
# Generate a report in the CycloneDX format
$ trivy image --format cyclonedx --output result.cdx alpine:3.15`,
$ trivy image --format cyclonedx --output result.cdx --security-checks none alpine:3.15`,
// 'Args' cannot be used since it is called before PreRunE and viper is not configured yet.
// cmd.Args -> cannot validate args here