Skip to content

Commit 91b6dca

Browse files
committed
add technologies - inc mvn
1 parent 16f0418 commit 91b6dca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

artifactory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func clearOrRedirectLocalCacheIfNeeded(t *testing.T, projectType project.Project
206206
assert.NoError(t, coreutils.SetPermissionsRecursively(goTempCachePath, 0755))
207207
createTempDirCallback()
208208
}
209-
case project.Pip, project.Pipenv:
209+
case project.Pip:
210210
pipTempCachePath, createTempDirCallback := coreTests.CreateTempDirWithCallbackAndAssert(t)
211211
envVarCallbackFunc := clientTests.SetEnvWithCallbackAndAssert(t, securityTests.PipCacheEnvVar, pipTempCachePath)
212212
callbackFunc = func() {

commands/audit/scarunner.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"encoding/json"
55
"errors"
66
"fmt"
7+
flags "github.com/jfrog/jfrog-cli-security/cli/docs"
78

89
"github.com/jfrog/jfrog-cli-security/commands/audit/sca/swift"
910

@@ -89,7 +90,12 @@ func buildDepTreeAndRunScaScan(auditParallelRunner *utils.SecurityParallelRunner
8990
if len(auditParams.Technologies()) == 0 {
9091
var technologies []string
9192
for _, tech := range cmdResults.GetTechnologies() {
92-
technologies = append(technologies, tech.String())
93+
if tech == techutils.Maven {
94+
// On Maven we use '--mvn' flag
95+
technologies = append(technologies, flags.Mvn)
96+
} else {
97+
technologies = append(technologies, tech.String())
98+
}
9399
}
94100
auditParams.SetTechnologies(technologies)
95101
}

0 commit comments

Comments
 (0)