1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-01-18 05:18:24 +02:00

Ensure report severity limit is based on configuration

This commit is contained in:
Sven Merk 2019-03-15 13:21:56 +01:00
parent e37b714c99
commit 1a04394a00
2 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,7 @@
</h2>
<div>
<h3> total number of vulnerabilities: ${totalVulnerabilities}<br />
total number of high/critical vulnerabilities with CVSS score >= 7.0: ${totalSevereVulnerabilities}
total number of high/critical vulnerabilities with CVSS score >= ${cvssSeverityLimit}: ${totalSevereVulnerabilities}
</h3>
</div>
<p>Snapshot taken:${now} GMT</p>

View File

@ -530,6 +530,7 @@ def getReportHtml(config, vulnerabilityList, numSevereVulns) {
now : now,
reportTitle : config.whitesource.vulnerabilityReportTitle,
style : config.style,
cvssSeverityLimit : config.whitesource.cvssSeverityLimit,
totalSevereVulnerabilities : numSevereVulns,
totalVulnerabilities : vulnerabilityList.size(),
vulnerabilityTable : vulnerabilityTable,