From 08b1417605a85e66ab4709920eeacaa5b75476e1 Mon Sep 17 00:00:00 2001 From: "Achim H." Date: Thu, 7 May 2026 12:02:29 +0200 Subject: [PATCH] changed Trivy Security Jenkins --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3e2d608..0658947 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' ])