fix(ci): ratta grep-fallback i trivy HIGH-sammanfattningen (set -e)
masterplan-lock / check (push) Successful in 16s
masterplan-lock / check (pull_request) Successful in 10s
security / scan (pull_request) Failing after 2m13s

This commit is contained in:
Claude Code
2026-11-10 20:34:30 +01:00
parent 50cb343f98
commit 287dbc25b6
+1 -1
View File
@@ -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