File tree Expand file tree Collapse file tree 2 files changed +47
-22
lines changed
Expand file tree Collapse file tree 2 files changed +47
-22
lines changed Original file line number Diff line number Diff line change @@ -34,28 +34,11 @@ jobs:
3434 steps :
3535 - uses : actions/checkout@v4
3636 - uses : gradle/actions/wrapper-validation@v3
37- osv-scanner :
38- runs-on : ubuntu-latest
39- continue-on-error : true
40- strategy :
41- fail-fast : false
42- matrix :
43- project :
44- - core
45- - isthmus
46- - isthmus-cli
47- steps :
48- - uses : actions/checkout@v4
49- - name : Set up Go
50- uses : actions/setup-go@v5
51- with :
52- go-version : stable
53- - name : Install OSV-Scanner
54- run : go install github.com/google/osv-scanner/cmd/osv-scanner@v1
55- - name : Generate SBOM
56- run : ./gradlew :${{ matrix.project }}:cyclonedxBom
57- - name : Scan
58- run : osv-scanner scan --sbom ${{ matrix.project }}/build/reports/bom.json
37+ scan :
38+ uses : ./.github/workflows/vulnerability-scan.yml
39+ permissions :
40+ contents : read
41+ security-events : write
5942 java :
6043 name : Build and Test Java
6144 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1+ name : Security vulnerability scan
2+
3+ on :
4+ workflow_call :
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ sbom :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-java@v4
15+ with :
16+ java-version : ' 17'
17+ distribution : ' temurin'
18+ - name : Generate SBOM
19+ run : ./gradlew cyclonedxBom
20+ - uses : actions/upload-artifact@v4
21+ with :
22+ name : cyclonedx-sboms
23+ path : |
24+ core/build/reports/bom.json
25+ isthmus/build/reports/bom.json
26+ isthmus-cli/build/reports/bom.json
27+ scan :
28+ needs : sbom
29+ permissions :
30+ security-events : write
31+ strategy :
32+ fail-fast : false
33+ matrix :
34+ project :
35+ - core
36+ - isthmus
37+ - isthmus-cli
38+ uses : google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.7.3
39+ with :
40+ download-artifact : cyclonedx-sboms
41+ scan-args : |-
42+ --sbom=${{ matrix.project }}/build/reports/bom.json
You can’t perform that action at this time.
0 commit comments