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

feat(reporting) update markdown reports (#2819)

This commit is contained in:
Oliver Nocon
2021-05-11 08:01:02 +02:00
committed by GitHub
parent 98fac0a455
commit 4b666003c8
3 changed files with 10 additions and 6 deletions

View File

@@ -482,7 +482,8 @@ func checkPolicyViolations(config *ScanOptions, scan *ws.Scan, sys whitesource,
Overview: []reporting.OverviewRow{
{Description: "Total number of licensing vulnerabilities", Details: fmt.Sprint(policyViolationCount)},
},
ReportTime: utils.Now(),
SuccessfulScan: policyViolationCount == 0,
ReportTime: utils.Now(),
}
// JSON reports are used by step pipelineCreateSummary in order to e.g. prepare an issue creation in GitHub
@@ -628,7 +629,8 @@ func createCustomVulnerabilityReport(config *ScanOptions, scan *ws.Scan, alerts
{Description: "Total number of vulnerabilities", Details: fmt.Sprint(len(alerts))},
{Description: "Total number of high/critical vulnerabilities with CVSS score >= 7.0", Details: fmt.Sprint(severe)},
},
ReportTime: utils.Now(),
SuccessfulScan: severe == 0,
ReportTime: utils.Now(),
}
detailTable := reporting.ScanDetailTable{