Skip to content

Commit f51efbf

Browse files
logging-temp-zip-path-correctly
1 parent 0ca02ea commit f51efbf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/commands/scan.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,8 +1783,10 @@ func getUploadURLFromSource(cmd *cobra.Command, uploadsWrapper wrappers.UploadsW
17831783
}
17841784
}
17851785

1786-
if zipFilePath != "" {
1786+
if zipFilePath != "" && !isSbom {
17871787
return uploadZip(uploadsWrapper, zipFilePath, unzip, userProvidedZip, featureFlagsWrapper)
1788+
} else if zipFilePath != "" && isSbom {
1789+
return uploadZip(uploadsWrapper, zipFilePath, unzip, false, featureFlagsWrapper)
17881790
}
17891791
return preSignedURL, zipFilePath, nil
17901792
}

0 commit comments

Comments
 (0)