Skip to content

Commit b33d57d

Browse files
committed
Test OSV scanner.
1 parent 0838bb0 commit b33d57d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/sbom.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ jobs:
2121
#- name: Install Composer dependencies
2222
# run: composer install --no-progress --no-suggest --prefer-dist --no-interaction
2323

24+
- name: Install snapd
25+
run: sudo apt install -y snapd
26+
27+
- name: Install OSV-Scanner
28+
run : sudo snap install -y osv-scanner
29+
2430
- name: Allow SBOM Plugin
2531
run: composer config --no-plugins allow-plugins.cyclonedx/cyclonedx-php-composer true
2632

@@ -30,6 +36,9 @@ jobs:
3036
- name: CREATE SBOM
3137
run: composer CycloneDX:make-sbom --output-file=sbom.json --output-format=json
3238

39+
- name: Run OSV-Scanner
40+
run: osv-scanner --sbom=sbom.json
41+
3342
- name: Upload SBOM as an artifact
3443
uses: actions/upload-artifact@v4
3544
with:

0 commit comments

Comments
 (0)