Skip to content

Commit

Permalink
fix: scan for cves without comment and only publish compare result
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Waffen <[email protected]>
  • Loading branch information
rwaffen committed Aug 23, 2024
1 parent 1dbee06 commit 190107b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,20 @@ jobs:
username: voxpupulibot
password: ${{ secrets.DOCKERHUB_BOT_PASSWORD }}

- name: Analyze Container Image
id: analyze-image
- name: Analyze container image for CVEs
id: analyze-image-cves
uses: docker/scout-action@v1
with:
command: cves,compare,recommendations
command: cves
image: 'local://ci/voxbox:${{ matrix.rubygem_puppet }}'
sarif-file: sarif.output.${{ matrix.rubygem_puppet }}.${{ github.sha }}.json
write-comment: false

- name: Compare container image to latest from Registry
id: compare-image
uses: docker/scout-action@v1
with:
command: compare
to: 'ghcr.io/voxpupuli/voxbox:${{ matrix.puppet_release }}-main'
image: 'local://ci/voxbox:${{ matrix.rubygem_puppet }}'
sarif-file: sarif.output.${{ matrix.rubygem_puppet }}.${{ github.sha }}.json
Expand Down

0 comments on commit 190107b

Please sign in to comment.