From 733bfd958c6f993c9b9a0c2df85ae8818d35447d Mon Sep 17 00:00:00 2001 From: John Osborne Date: Thu, 21 Nov 2024 17:09:37 -0500 Subject: [PATCH] Update updates.yaml Signed-off-by: John Osborne --- .github/workflows/updates.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/updates.yaml b/.github/workflows/updates.yaml index 571c768..9e636b0 100644 --- a/.github/workflows/updates.yaml +++ b/.github/workflows/updates.yaml @@ -118,8 +118,8 @@ jobs: if: env.FIX_CVE == 'true' run: | grype $NEW_IMAGE -o sarif > grype-results.sarif - cat grype-results.sarif - SARIF_SUMMARY=$(cat grype-results.sarif | jq '.runs[0].tool.driver.rules | map({id: .id, severity: .properties.severity})') + grype $NEW_IMAGE 2>&1 | tee summary.out + SARIF_SUMMARY=$(cat summary.out) echo "SARIF_SUMMARY=${SARIF_SUMMARY}" >> $GITHUB_ENV - name: Upload SARIF results