1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-10-30 23:57:50 +02:00

Update whitesource risk-report pattern (#4166)

* Update whitesource pattern

* Update filePattern

* go generate
This commit is contained in:
Vyacheslav Starostin
2023-01-05 18:37:03 +06:00
committed by GitHub
parent a3e8a54540
commit c467f002b1
2 changed files with 6 additions and 6 deletions

View File

@@ -162,10 +162,10 @@ func (p *whitesourceExecuteScanReports) persist(stepConfig whitesourceExecuteSca
log.Entry().Info("Uploading reports to Google Cloud Storage...")
content := []gcs.ReportOutputParam{
{FilePattern: "**/whitesource-ip.json", ParamRef: "", StepResultType: "whitesource-ip"},
{FilePattern: "**/whitesource-riskReport.pdf", ParamRef: "", StepResultType: "whitesource-ip"},
{FilePattern: "**/*risk-report.pdf", ParamRef: "", StepResultType: "whitesource-ip"},
{FilePattern: "**/toolrun_whitesource_*.json", ParamRef: "", StepResultType: "whitesource-ip"},
{FilePattern: "**/piper_whitesource_vulnerability_report.html", ParamRef: "", StepResultType: "whitesource-security"},
{FilePattern: "**/whitesource-riskReport.pdf", ParamRef: "", StepResultType: "whitesource-security"},
{FilePattern: "**/*risk-report.pdf", ParamRef: "", StepResultType: "whitesource-security"},
{FilePattern: "**/toolrun_whitesource_*.json", ParamRef: "", StepResultType: "whitesource-security"},
{FilePattern: "**/piper_whitesource_vulnerability.sarif", ParamRef: "", StepResultType: "whitesource-security"},
{FilePattern: "**/piper_whitesource_sbom.xml", ParamRef: "", StepResultType: "whitesource-security"},
@@ -995,10 +995,10 @@ func whitesourceExecuteScanMetadata() config.StepData {
Type: "reports",
Parameters: []map[string]interface{}{
{"filePattern": "**/whitesource-ip.json", "type": "whitesource-ip"},
{"filePattern": "**/whitesource-riskReport.pdf", "type": "whitesource-ip"},
{"filePattern": "**/*risk-report.pdf", "type": "whitesource-ip"},
{"filePattern": "**/toolrun_whitesource_*.json", "type": "whitesource-ip"},
{"filePattern": "**/piper_whitesource_vulnerability_report.html", "type": "whitesource-security"},
{"filePattern": "**/whitesource-riskReport.pdf", "type": "whitesource-security"},
{"filePattern": "**/*risk-report.pdf", "type": "whitesource-security"},
{"filePattern": "**/toolrun_whitesource_*.json", "type": "whitesource-security"},
{"filePattern": "**/piper_whitesource_vulnerability.sarif", "type": "whitesource-security"},
{"filePattern": "**/piper_whitesource_sbom.xml", "type": "whitesource-security"},

View File

@@ -633,13 +633,13 @@ spec:
params:
- filePattern: "**/whitesource-ip.json"
type: whitesource-ip
- filePattern: "**/whitesource-riskReport.pdf"
- filePattern: "**/*risk-report.pdf"
type: whitesource-ip
- filePattern: "**/toolrun_whitesource_*.json"
type: whitesource-ip
- filePattern: "**/piper_whitesource_vulnerability_report.html"
type: whitesource-security
- filePattern: "**/whitesource-riskReport.pdf"
- filePattern: "**/*risk-report.pdf"
type: whitesource-security
- filePattern: "**/toolrun_whitesource_*.json"
type: whitesource-security