Skip to content

Commit 0cf0a22

Browse files
committed
DEBUG workflow
Signed-off-by: tdruez <[email protected]>
1 parent b93e411 commit 0cf0a22

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/sca-integration-osv.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ on:
88
- main
99

1010
permissions:
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

1813
env:
@@ -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: |

0 commit comments

Comments
 (0)