fix(ci): ratta grep-fallback i trivy HIGH-sammanfattningen (set -e)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user