changed Trivy Security Jenkins
Some checks failed
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-07 12:02:29 +02:00
parent b9b06263d8
commit 08b1417605

4
Jenkinsfile vendored
View File

@@ -61,7 +61,7 @@ pipeline {
// --template "@/contrib/html.tpl": Das Standard-Trivy-Layout // --template "@/contrib/html.tpl": Das Standard-Trivy-Layout
// Scannt das Dateisystem auf Schwachstellen (NuGet) und Secrets // Scannt das Dateisystem auf Schwachstellen (NuGet) und Secrets
// --exit-code 1 lässt die Pipeline bei kritischen Fehlern abbrechen // --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, alwaysLinkToLastBuild: true,
keepAll: true, keepAll: true,
reportDir: 'reports', reportDir: 'reports',
reportFiles: 'trivy-report.html', reportFiles: 'trivy-fs-report.html','trivy-image-report.html'
reportName: 'Trivy Security Report' reportName: 'Trivy Security Report'
]) ])