File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 88 - main
99
1010permissions :
11- # Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
12- actions : read
13- # Require writing security events to upload SARIF file to security tab
14- security-events : write
15- # to fetch code (actions/checkout)
1611 contents : read
1712
1813env :
@@ -31,21 +26,22 @@ jobs:
3126 - name : Run OSV Scanner
3227 run : |
3328 osv-scanner scan --help
34- osv-scanner scan image ${{ env.IMAGE_REFERENCE }} --all-packages --format spdx-2-3 --output sbom.spdx.json || true
35-
36- # - name: Run OSV Scanner
37- # uses: docker://ghcr.io/google/osv-scanner-action:v2.2.1
38- # with:
39- # args: scan image --archive alpine_3.17.0.tar --format spdx-2-3 --all-packages
40- # args: scan image --archive alpine_3.17.0.tar --format json
29+ osv-scanner scan image ${{ env.IMAGE_REFERENCE }} --all-packages --format spdx-2-3 --output osv-sbom.cdx.json || true
4130
4231 - name : Upload SBOM as GitHub Artifact
4332 uses : actions/upload-artifact@v4
4433 with :
4534 name : osv-scanner-sbom-report
46- path : sbom.spdx .json
35+ path : osv- sbom.cdx .json
4736 retention-days : 20
4837
38+ - name : Import SBOM into ScanCode.io
39+ uses : aboutcode-org/scancode-action@main
40+ with :
41+ pipelines : " load_sbom"
42+ inputs-path : " sbom-output/_manifest/spdx_2.2/manifest.spdx.json"
43+ scancodeio-repo-branch : " main"
44+
4945 - name : Verify SBOM Analysis Results in ScanCode.io
5046 shell : bash
5147 run : |
You can’t perform that action at this time.
0 commit comments