1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-11-06 09:09:19 +02:00

report vulnerability reports in the aggregated vulnerability report only (#2915)

This commit is contained in:
Johannes Schneider
2021-06-17 13:58:10 +02:00
committed by GitHub
parent 188e409a87
commit 3fa46f20d3

View File

@@ -781,7 +781,7 @@ func aggregateVersionWideVulnerabilities(config *ScanOptions, utils whitesourceU
projectVersion := strings.Split(project.Name, " - ")[1]
if projectVersion == config.Version {
projectNames += project.Name + "\n"
alerts, err := sys.GetProjectAlerts(project.Token)
alerts, err := sys.GetProjectAlertsByType(project.Token, "SECURITY_VULNERABILITY")
if err != nil {
return err
}