File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,31 @@ permissions:
1111 contents : read
1212
1313env :
14- IMAGE_REFERENCE : ' python:3.13.0-slim'
14+ IMAGE_REFERENCE : " python:3.13.0-slim"
15+
1516jobs :
1617 generate-sbom :
17- runs-on : ubuntu-latest
18+ runs-on : ubuntu-24.04
1819 steps :
1920 - name : Run Trivy in CycloneDX SBOM mode
2021 uses :
aquasecurity/[email protected] 2122 with :
22- scan-type : ' image'
23+ scan-type : " image"
2324 image-ref : ${{ env.IMAGE_REFERENCE }}
24- format : ' cyclonedx'
25- output : ' trivy-report.sbom.json'
26- scanners : ' vuln,license'
27- version : ' latest'
25+ format : " cyclonedx"
26+ output : " trivy-report.sbom.json"
27+ scanners : " vuln,license"
28+ version : " latest"
2829
2930 - name : Upload Trivy report as a Github artifact
3031 uses : actions/upload-artifact@v4
3132 with :
3233 name : upload-trivy-sbom-report
33- path : ' ${{ github.workspace }}/trivy-report.sbom.json'
34- retention-days : 20 # 90 is the default
34+ path : " ${{ github.workspace }}/trivy-report.sbom.json"
35+ retention-days : 20
36+
37+ - name : Load the Trivy report SBOM into ScanCode.io
38+ uses : aboutcode-org/scancode-action@main
39+ with :
40+ pipelines : " load_sbom"
41+ inputs-path : " ${{ github.workspace }}/trivy-report.sbom.json"
You can’t perform that action at this time.
0 commit comments