From 09d54546cabf2276da78f3b0745ce2ad4819e74a Mon Sep 17 00:00:00 2001 From: Noxcis Date: Sat, 24 Aug 2024 01:34:03 -0500 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2417284..cfab63d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,10 +35,15 @@ jobs: - name: Analyze Docker image with Docker Scout id: analyze-image run: | - docker scout cves my-app-image:latest > scout-results.json + # Get the current date in YYYY-MM-DD format + DATE=$(date +'%Y-%m-%d') + OUTPUT_FILE=".github/workflows/cve-report-$DATE.json" + + docker scout cves my-app-image:latest > $OUTPUT_FILE + echo "CVE report saved to $OUTPUT_FILE" - name: Upload Scout results uses: actions/upload-artifact@v3 with: name: scout-results - path: scout-results.json + path: .github/workflows/cve-report-*.json