diff --git a/commands/scan/scan.go b/commands/scan/scan.go index 276408ae..08570d03 100644 --- a/commands/scan/scan.go +++ b/commands/scan/scan.go @@ -522,9 +522,7 @@ func appendErrorSlice(scanErrors []formats.SimpleJsonError, errorsToAdd [][]form return scanErrors } -func depsListFromVulnerabilities(scanResult ...services.ScanResponse) []string { - var depsList []string - var technologiesList []coreutils.Technology +func depsListFromVulnerabilities(scanResult ...services.ScanResponse) (depsList []string) { for _, result := range scanResult { for _, vulnerability := range result.Vulnerabilities { dependencies := maps.Keys(vulnerability.Components) @@ -533,15 +531,9 @@ func depsListFromVulnerabilities(scanResult ...services.ScanResponse) []string { depsList = append(depsList, dependency) } } - - if !slices.Contains(technologiesList, coreutils.Technology(vulnerability.Technology)) && (vulnerability.Technology != "") { - technologiesList = append(technologiesList, coreutils.Technology(vulnerability.Technology)) - } - } - } - return depsList + return } func ConditionalUploadDefaultScanFunc(serverDetails *config.ServerDetails, fileSpec *spec.SpecFiles, threads int, scanOutputFormat format.OutputFormat) error {