Skip to content

Commit 16f0418

Browse files
committed
add technologies to audit-params
1 parent b92b090 commit 16f0418

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
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:
209+
case project.Pip, project.Pipenv:
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,13 @@ func buildDepTreeAndRunScaScan(auditParallelRunner *utils.SecurityParallelRunner
8686
// Make sure to return to the original working directory, buildDependencyTree may change it
8787
generalError = errors.Join(generalError, errorutils.CheckError(os.Chdir(currentWorkingDir)))
8888
}()
89+
if len(auditParams.Technologies()) == 0 {
90+
var technologies []string
91+
for _, tech := range cmdResults.GetTechnologies() {
92+
technologies = append(technologies, tech.String())
93+
}
94+
auditParams.SetTechnologies(technologies)
95+
}
8996
// Perform SCA scans
9097
for _, targetResult := range cmdResults.Targets {
9198
if targetResult.Technology == "" {

0 commit comments

Comments
 (0)