diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml index fd3d8739..dcf9e7ab 100644 --- a/.gitea/workflows/security.yml +++ b/.gitea/workflows/security.yml @@ -98,7 +98,7 @@ jobs: aquasec/trivy:0.76.2 fs --scanners vuln,secret,misconfig --severity HIGH --exit-code 0 --no-progress \ $SKIP $IGN /repo > /tmp/scan-high.log 2>&1 set -e - summary=$(grep -E "^Total:" /tmp/scan-high.log | head -3 | tr '\n' ' ') + summary=$(grep -E "^Total:" /tmp/scan-high.log | head -3 | tr '\n' ' ' || true) echo "::warning::Trivy HIGH (icke-blockerande, atgards via Renovate): ${summary:-inga}" # Kanda sarbarheter i lasfilen. osv-scanner 2.x hittar inte alltid