Skip to content

Commit ee68831

Browse files
committed
Malicious code scanner
1 parent c0d1edd commit ee68831

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/docs/flags.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ const (
130130
ScanVuln = scanPrefix + Vuln
131131
SecretValidation = "validate-secrets"
132132
StaticSca = "static-sca"
133+
malProjectKey = Project
133134
scanProjectKey = scanPrefix + Project
134135
uploadProjectKey = UploadCdx + "-" + Project
135136

@@ -177,7 +178,7 @@ var commandFlags = map[string][]string{
177178
Url, XrayUrl, user, password, accessToken, ServerId, Threads, InsecureTls,
178179
},
179180
MaliciousScan: {
180-
Url, XrayUrl, user, password, accessToken, ServerId, Threads, InsecureTls, OutputFormat, MinSeverity, AnalyzerManagerCustomPath, WorkingDirs, scanProjectKey,
181+
Url, XrayUrl, user, password, accessToken, ServerId, Threads, InsecureTls, OutputFormat, MinSeverity, AnalyzerManagerCustomPath, WorkingDirs, malProjectKey,
181182
},
182183
BuildScan: {
183184
Url, XrayUrl, user, password, accessToken, ServerId, scanProjectKey, BuildVuln, OutputFormat, Fail, ExtendedTable, Rescan, InsecureTls, TriggerScanRetries,
@@ -260,6 +261,7 @@ var flagsMap = map[string]components.Flag{
260261
scanRegexp: components.NewBoolFlag(RegexpFlag, "Set to true to use a regular expression instead of wildcards expression to collect files to scan."),
261262
scanAnt: components.NewBoolFlag(AntFlag, "Set to true to use an ant pattern instead of wildcards expression to collect files to scan."),
262263
scanProjectKey: components.NewStringFlag(Project, "JFrog project key, to enable Xray to determine security violations accordingly. The command accepts this option only if the --repo-path and --watches options are not provided. If none of the three options are provided, the command will show all known vulnerabilities."),
264+
malProjectKey: components.NewStringFlag(Project, "JFrog project key"),
263265
uploadProjectKey: components.NewStringFlag(Project, "JFrog project key to upload the file to."),
264266
Watches: components.NewStringFlag(Watches, "Comma-separated list of Xray watches to determine violations. Supported violations are CVEs, operational risk, and Licenses. Incompatible with --project and --repo-path."),
265267
RepoPath: components.NewStringFlag(RepoPath, "Artifactory repository path, to enable Xray to determine violations accordingly. The command accepts this option only if the --project and --watches options are not provided. If none of the three options are provided, the command will show all known vulnerabilities."),

0 commit comments

Comments
 (0)