Skip to content

Commit ff08bf4

Browse files
author
yubaichao
committed
fix skip-skills flag registration
1 parent 09cefe7 commit ff08bf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cmd/murphy/internal/scan

cmd/murphy/internal/scan/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func Cmd() *cobra.Command {
7979
c.Flags().StringVar(&extraData, "extra-data", "", "specify the extra data")
8080
c.Flags().BoolVar(&scanCodeHash, "scan-snippets", false, "Enable scanning of code snippets to detect SBOM and vulnerabilities. Disabled by default")
8181
c.Flags().BoolVar(&binaryOnly, "binary-only", false, "only scan binary files, skip source code scanning")
82+
c.Flags().BoolVar(&skipSkills, "skip-skills", false, "disable Skills security scanning for this run")
8283
c.Flags().StringArrayVar(&toolver.Default.Maven.AdditionalPrependArgs, "maven-prepend-arg", []string{}, "Prepend an argument to the Maven command. Can be specified multiple times.")
8384
c.Flags().StringArrayVar(&toolver.Default.Maven.AdditionalArgs, "maven-arg", []string{}, "Append an argument to the Maven command. Can be specified multiple times.")
8485
c.Flags().StringVar(&toolver.Default.Maven.JdkVersion, "maven-jdk", "", "specify JDK version for Maven build")
@@ -108,7 +109,6 @@ func DfCmd() *cobra.Command {
108109
c.Flags().Var(&sbomOutputType, "sbom-format", "(Required) specify the SBOM format, currently supports: msdx1.1+json")
109110
c.Flags().StringVar(&webhookAddr, "webhook-addr", "", "specify the webhook address")
110111
c.Flags().Var(&webhookMode, "webhook-mode", "specify the webhook mode, currently supports: simple, full(default)")
111-
c.Flags().BoolVar(&skipSkills, "skip-skills", false, "disable Skills security scanning for this run")
112112
c.Flags().Var(&distribution, "distribution", "specify the distribution, currently supports: external, internal, saas, open_source")
113113
c.Flags().StringVar(&extraData, "extra-data", "", "specify the extra data")
114114
c.Flags().BoolVar(&scanCodeHash, "scan-snippets", false, "Enable scanning of code snippets to detect SBOM and vulnerabilities. Disabled by default")

0 commit comments

Comments
 (0)