Update main.yml

This commit is contained in:
Noxcis 2024-08-24 02:28:35 -05:00 committed by GitHub
parent fee6cf29eb
commit dbd825ba4b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,12 +55,12 @@ jobs:
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
- name: Docker Scout Analysis - name: Docker Scout
id: docker-scout id: docker-scout
run: | if: ${{ github.event_name == 'pull_request' }}
docker run --rm \ uses: docker/scout-action@dd36f5b0295baffa006aa6623371f226cc03e506
-v /var/run/docker.sock:/var/run/docker.sock \ with:
docker/scout-action:v1 \ command: cves
cves \ image: ${{ steps.meta.outputs.tags }}
--image wg-dashboard:latest \ only-severities: critical,high
--github-token ${{ secrets.GITHUB_TOKEN }} exit-code: true