-
Notifications
You must be signed in to change notification settings - Fork 72
45 lines (42 loc) · 1.06 KB
/
vulnerability-scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Security vulnerability scan
on:
workflow_call:
permissions:
contents: read
jobs:
sbom:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Generate SBOM
run: ./gradlew cyclonedxBom
- uses: actions/upload-artifact@v4
with:
name: cyclonedx-sboms
path: |
core/build/reports/bom.json
isthmus/build/reports/bom.json
isthmus-cli/build/reports/bom.json
scan:
needs: sbom
runs-on: ubuntu-latest
continue-on-error: true
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
project:
- core
- isthmus
- isthmus-cli
steps:
- uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1
with:
download-artifact: cyclonedx-sboms
scan-args: |-
--sbom=${{ matrix.project }}/build/reports/bom.json