1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/pkg/protecode
Christopher Fenner b59bac7892
fix(protecode): respect failOnSevereVulnerabilities parameter (#1969)
* fix redundant type issues

* cleanup

* extract report function for protecode package

* use speaking status constant for API results

* remove unconsidered return value

* correct switch statement

* handle severe vulnerabilities

* Apply suggestions from code review

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>

* correct test name

* return errors from WriteReport function

* expose ReportData struct

* set Error Category

* refactor constant visibility

* change type name

* describe type

* change type name

* fail after report generation

* do not fail on report write errors

* add error as return value

* fix typo

* use require statements

* assert major vulnerabilities

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-09-02 10:41:12 +02:00
..
testdata Protecode as GoLang (#1119) 2020-02-06 16:16:34 +01:00
analysis_test.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00
analysis.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00
api.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00
protecode_test.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00
protecode.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00
report_test.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00
report.go fix(protecode): respect failOnSevereVulnerabilities parameter (#1969) 2020-09-02 10:41:12 +02:00