Skip to content

Commit 32c3857

Browse files
committed
switch from trivy to docker scout
Signed-off-by: Robert Waffen <[email protected]>
1 parent cfbf2e4 commit 32c3857

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,20 @@ jobs:
5252
RUBYGEM_OVERCOMMIT=${{ matrix.rubygem_overcommit }}
5353
RUBYGEM_MODULESYNC=${{ matrix.rubygem_modulesync }}
5454
55-
- name: Run Trivy vulnerability scanner
56-
uses: aquasecurity/trivy-action@master
55+
- name: Analyze for critical and high CVEs
56+
id: docker-scout-cves
57+
uses: docker/scout-action@v1
5758
with:
58-
image-ref: 'ci/voxbox-${{ matrix.rubygem_puppet }}:${{ github.sha }}'
59-
format: 'sarif'
60-
output: 'trivy-results-${{ matrix.rubygem_puppet }}.sarif'
61-
severity: 'CRITICAL,HIGH'
59+
command: cves
60+
image: 'local://ci/voxbox-${{ matrix.rubygem_puppet }}:${{ github.sha }}'
61+
sarif-file: sarif.output.${{ matrix.rubygem_puppet }}.${{ github.sha }}.json
62+
summary: true
6263

63-
- name: Upload Trivy scan results to GitHub Security tab
64-
uses: github/codeql-action/upload-sarif@v3
64+
- name: Upload SARIF result
65+
id: upload-sarif
66+
uses: github/codeql-action/upload-sarif@v2
6567
with:
66-
sarif_file: 'trivy-results-${{ matrix.rubygem_puppet }}.sarif'
68+
sarif_file: sarif.output.${{ matrix.rubygem_puppet }}.${{ github.sha }}.json
6769

6870
- name: Clone voxpupuli/puppet-example repository
6971
uses: actions/checkout@v4

0 commit comments

Comments
 (0)