You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code part from which this was copied is not trying to do the same, therefore this check for Maven is redundant.
90
-
if we look at cli-security/cli/scancommands.go, AuditCmd we can see a loop that is referring maven specifically.
91
-
in this loop we iterate all existing Technology types and check if a flag specifying each technology is provided.
92
-
If so we add this technology to the audit params we use for the command execution.
93
-
The reason for the specific reference for Maven is: the flag for Maven is 'mvn' and not similar to the name of the technology like the rest of the technologies
94
-
Therefore, we check for the 'mvn' bool flag instead of 'maven' bool flag.
95
-
This is NOT relevant here since the Technology is still Maven (techutils.Maven) and not the flags.mvn.
96
-
*/
97
-
/*
98
-
if len(auditParams.Technologies()) == 0 {
99
-
var technologies []string
100
-
for _, tech := range cmdResults.GetTechnologies() {
// TODO eran - consider adding the tech here and not prior to this step in buildDepTreeAndRunScaScan. make sure to filer before adding to avoid duplicates (we can have dup if we came from CLI and not frogbot since we have tech flags)
0 commit comments