Skip to content

Commit

Permalink
chore try docker scout
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Apr 4, 2024
1 parent faf8f5c commit 7d04940
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .github/workflows/docker-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
- name: Analyze for critical and high CVEs
id: docker-scout-cves
if: ${{ github.event_name != 'pull_request_target' }}
uses: docker/scout-action@v1
with:
image-ref: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:main
format: "sarif"
# output: "trivy-results.sarif"
severity: "CRITICAL,HIGH"
scanners: "vuln"
limit-severities-for-sarif: true
output: "trivy-results.sarif"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
command: cves
only-severities: critical,high
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-ee:main
sarif-file: sarif.output.json
summary: true
dockerhub-user: windmilllabs
dockerhub-password: ${{ secrets.DOCKER_PAT }}

- name: Upload SARIF result
id: upload-sarif
if: ${{ github.event_name != 'pull_request_target' }}
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: "trivy-results.sarif"
sarif_file: sarif.output.json

0 comments on commit 7d04940

Please sign in to comment.