Skip to content

Commit 9d41c7f

Browse files
committed
Debug OSV-Scanner action #1730
Signed-off-by: tdruez <[email protected]>
1 parent 22ff8d5 commit 9d41c7f

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed
Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,6 @@
1-
name: Generate SBOM with OSV-Scanner and load into ScanCode.io
2-
3-
# This workflow:
4-
# 1. Generates a CycloneDX SBOM for a container image using OSV-Scanner.
5-
# 2. Uploads the SBOM as a GitHub artifact for future inspection.
6-
# 3. Loads the SBOM into ScanCode.io for further analysis.
7-
# 4. Runs assertions to verify that the SBOM was properly processed in ScanCode.io.
8-
#
9-
# It runs on demand, and once a week (scheduled).
10-
11-
# https://google.github.io/osv-scanner/github-action/#github-action
12-
1+
name: OSV-Scanner
132
on:
143
workflow_dispatch:
15-
schedule:
16-
# Run once a week (every 7 days) at 00:00 UTC on Sunday
17-
- cron: "0 0 * * 0"
184
pull_request:
195
push:
206
branches:
@@ -32,23 +18,3 @@ jobs:
3218
steps:
3319
- name: Generate CycloneDX SBOM with OSV-Scanner
3420
uses: "google/osv-scanner-action/.github/workflows/[email protected]"
35-
with:
36-
scan-args: image ${{ env.IMAGE_REFERENCE }}
37-
38-
# - name: Upload SBOM as GitHub Artifact
39-
# uses: actions/upload-artifact@v4
40-
# with:
41-
# name: osv-sbom-report
42-
# path: "osv-grype-sbom.cdx.json"
43-
# retention-days: 20
44-
#
45-
# - name: Import SBOM into ScanCode.io
46-
# uses: aboutcode-org/scancode-action@main
47-
# with:
48-
# pipelines: "load_sbom"
49-
# inputs-path: "osv-grype-sbom.cdx.json"
50-
#
51-
# - name: Verify SBOM Analysis Results in ScanCode.io
52-
# shell: bash
53-
# run: |
54-
# scanpipe shell --command "from scanpipe.models import DiscoveredPackage, DiscoveredDependency; package_manager = DiscoveredPackage.objects; assert package_manager.count() > 3200; assert package_manager.vulnerable().count() > 40; assert DiscoveredDependency.objects.count() > 220"

0 commit comments

Comments
 (0)