fix: remove --security-checks none from image help (#3156)

This commit is contained in:
DmitriyLewen
2022-11-13 13:38:25 +06:00
committed by GitHub
parent 3aa19122f4
commit e9a2549955

View File

@@ -247,7 +247,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 --security-checks none alpine:3.15`,
$ trivy image --format cyclonedx --output result.cdx 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