added Trivy scanners
Some checks failed
Tests / Declarative: Post Actions No test results found
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-06 08:51:05 +02:00
parent d4f1d2a755
commit a9df25085a

2
Jenkinsfile vendored
View File

@@ -57,7 +57,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 --exit-code 1 --severity HIGH,CRITICAL --format template --template "@/contrib/html.tpl" -o reports/trivy-report.html .' sh 'trivy fs -scanners vuln,secret,misconfig,license --exit-code 1 --severity HIGH,CRITICAL --format template --template "@/contrib/html.tpl" -o reports/trivy-report.html .'
} }
} }
} }