From 400f73603cb0a44a9b1786fee3a089c89357281a Mon Sep 17 00:00:00 2001 From: patrickbeane Date: Sat, 4 Oct 2025 14:00:51 -0400 Subject: [PATCH] chore: refresh vuln summary (README + JSON) --- .github/workflows/update-vuln-summary.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-vuln-summary.yml b/.github/workflows/update-vuln-summary.yml index 9dcf7e4..2ada808 100644 --- a/.github/workflows/update-vuln-summary.yml +++ b/.github/workflows/update-vuln-summary.yml @@ -8,9 +8,13 @@ on: jobs: update-summary: runs-on: ubuntu-latest + permissions: + contents: write # allow pushing back to the repo steps: - name: Checkout repo uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} - name: Fetch sanitized JSON run: | @@ -20,13 +24,11 @@ jobs: - name: Extract last scan JSON run: | - # Save the structured last_scan block for machine readability jq '.last_scan' trivy_sanitized.json > latest.json cat latest.json - name: Build summary string run: | - # Pull fields out for a one-liner summary summary=$(jq -r '.last_scan | "Last scan: \(.date) — Critical: \(.critical) | High: \(.high) | Medium: \(.medium) | Low: \(.low) | Total: \(.total)"' trivy_sanitized.json) echo "SUMMARY=$summary" >> $GITHUB_ENV