Skip to content

Commit 033e180

Browse files
committed
Load the Trivy SBOM into SCIO #1729
Signed-off-by: tdruez <[email protected]>
1 parent fdf5bc7 commit 033e180

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/check-sca-integrations.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,31 @@ permissions:
1111
contents: read
1212

1313
env:
14-
IMAGE_REFERENCE: 'python:3.13.0-slim'
14+
IMAGE_REFERENCE: "python:3.13.0-slim"
15+
1516
jobs:
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"

0 commit comments

Comments
 (0)