Skip to content

Commit 5dc7125

Browse files
committed
Adjust the trivy workflow #1729
Signed-off-by: tdruez <[email protected]>
1 parent 1c06d3d commit 5dc7125

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,30 @@ on:
77
branches:
88
- main
99

10-
1110
permissions:
12-
contents: write
11+
contents: read
12+
13+
env:
14+
# IMAGE_REFERENCE: 'python:3.13-slim'
15+
IMAGE_REFERENCE: 'python:3.10.0'
1316

1417
jobs:
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

0 commit comments

Comments
 (0)