File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change 77 branches :
88 - main
99
10-
1110permissions :
12- contents : write
11+ contents : read
12+
13+ env :
14+ # IMAGE_REFERENCE: 'python:3.13-slim'
15+ IMAGE_REFERENCE : ' python:3.10.0'
1316
1417jobs :
1518 generate-sbom :
1619 runs-on : ubuntu-latest
1720 steps :
18- - name : Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
21+ - name : Run Trivy in CycloneDX SBOM mode
1922 uses :
aquasecurity/[email protected] 2023 with :
2124 scan-type : ' image'
22- image-ref : ' python:3.13-slim '
25+ image-ref : ${{ env.IMAGE_REFERENCE }}
2326 format : ' cyclonedx'
24- output : ' dependency-results .sbom.cdx .json'
27+ output : ' trivy-report .sbom.json'
2528 scanners : ' vuln,license'
2629 version : ' latest'
2730
28- - name : Upload trivy report as a Github artifact
31+ - name : Upload Trivy report as a Github artifact
2932 uses : actions/upload-artifact@v4
3033 with :
31- name : trivy-sbom-report
32- path : ' ${{ github.workspace }}/dependency-results .sbom.cdx .json'
34+ name : upload- trivy-sbom-report
35+ path : ' ${{ github.workspace }}/trivy-report .sbom.json'
3336 retention-days : 20 # 90 is the default
You can’t perform that action at this time.
0 commit comments