changed Trivy Security Jenkins
Some checks failed
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit
Some checks failed
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -61,7 +61,7 @@ pipeline {
|
||||
// --template "@/contrib/html.tpl": Das Standard-Trivy-Layout
|
||||
// Scannt das Dateisystem auf Schwachstellen (NuGet) und Secrets
|
||||
// --exit-code 1 lässt die Pipeline bei kritischen Fehlern abbrechen
|
||||
sh 'trivy fs --scanners vuln,misconfig,secret,license --exit-code 1 --severity HIGH,CRITICAL --format template --template "@/contrib/html.tpl" -o reports/trivy-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 .'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,7 +158,7 @@ pipeline {
|
||||
alwaysLinkToLastBuild: true,
|
||||
keepAll: true,
|
||||
reportDir: 'reports',
|
||||
reportFiles: 'trivy-report.html',
|
||||
reportFiles: 'trivy-fs-report.html','trivy-image-report.html'
|
||||
reportName: 'Trivy Security Report'
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user