changed back to "@/contrib/html.tpl"
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -59,7 +59,7 @@ pipeline {
|
||||
|
||||
// Ausführen des Scans hinsichtlich Vulnerabilities, Miskonfigurationen, Secrets und Licences im Jenkins Arbeitsverzeichnis
|
||||
// Abbruch bei bei kritischen Fehlern (--exit-code 1 --severity HIGH,CRITICAL)
|
||||
sh 'trivy fs --scanners vuln,misconfig,secret,license --exit-code 1 --severity HIGH,CRITICAL --format template --template "html" -o reports/trivy-fs-report.html .'
|
||||
sh 'trivy fs --scanners vuln,misconfig,secret,license --exit-code 1 --severity HIGH,CRITICAL --format template --template "@/contrib/html.tpl" -o reports/trivy-fs-report.html .'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -148,7 +148,7 @@ pipeline {
|
||||
trivy image --insecure \
|
||||
--severity HIGH,CRITICAL \
|
||||
--format template \
|
||||
--template "html" \
|
||||
--template "@/contrib/html.tpl" \
|
||||
--exit-code 1 \
|
||||
-o reports/trivy-image-report.html \
|
||||
130.61.26.230:30080/dev-master/secdevops-csharp-app:latest
|
||||
|
||||
Reference in New Issue
Block a user