diff --git a/.github/workflows/scan-image.yaml b/.github/workflows/scan-image.yaml index ebe46f2..f40ac26 100644 --- a/.github/workflows/scan-image.yaml +++ b/.github/workflows/scan-image.yaml @@ -34,7 +34,7 @@ jobs: "", "| Vulnerability ID | Package | Version | Severity | Description |", "|------------------|---------|---------|----------|-------------|", - (.Results[] | .Vulnerabilities[] | select(hr(.Severity)) | to_md), + (.Results // [] | .[] | .Vulnerabilities[]? | select(hr(.Severity)) | to_md), "" ] | join("\n") ' scan-results.json > vulnerability-report.md