1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-06 07:50:13 +01:00

Update main.yml

This commit is contained in:
Noxcis 2024-08-24 01:34:03 -05:00 committed by GitHub
parent b62fece3d0
commit 09d54546ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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