File tree 1 file changed +14
-15
lines changed
1 file changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -14,23 +14,22 @@ jobs:
14
14
runs-on : ubuntu-22.04
15
15
steps :
16
16
- 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
19
19
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]
25
27
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
28
32
- name : Upload report to GitHub
29
33
uses : github/codeql-action/upload-sarif@v3
30
34
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
You can’t perform that action at this time.
0 commit comments