Skip to content

Commit 9090723

Browse files
committed
ci: using trivy in place of syft and grype
1 parent ffe072e commit 9090723

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/scans.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,22 @@ jobs:
1414
runs-on: ubuntu-22.04
1515
steps:
1616
- uses: actions/checkout@v4
17-
- name: Generate
18-
uses: anchore/sbom-action@v0
17+
- name: Update Dependency Graph
18+
uses: aquasecurity/trivy-action@0.28.0
1919
with:
20-
output-file: sbom.spdx.json
21-
dependency-snapshot: true
22-
- name: Scan
23-
uses: anchore/scan-action@v6
24-
id: scan
20+
scan-type: fs
21+
scan-ref: .
22+
format: github
23+
output: sbom.spdx.json
24+
github-pat: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Generate Sarif Report
26+
uses: aquasecurity/[email protected]
2527
with:
26-
sbom: sbom.spdx.json
27-
fail-build: false
28+
scan-type: fs
29+
scan-ref: .
30+
format: sarif
31+
output: trivy.sarif.json
2832
- name: Upload report to GitHub
2933
uses: github/codeql-action/upload-sarif@v3
3034
with:
31-
sarif_file: ${{ steps.scan.outputs.sarif }}
32-
- name: Upload SARIF artifact
33-
uses: actions/upload-artifact@v4
34-
with:
35-
path: ${{ steps.scan.outputs.sarif }}
36-
name: sarif-report
35+
sarif_file: trivy.sarif.json

0 commit comments

Comments
 (0)