-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use osv-scanner-reusable GitHub Action
- Loading branch information
1 parent
2c4dce9
commit e7d6433
Showing
2 changed files
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
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 | ||
permissions: | ||
security-events: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
project: | ||
- core | ||
- isthmus | ||
- isthmus-cli | ||
uses: google/osv-scanner-action/.github/workflows/[email protected] | ||
with: | ||
download-artifact: cyclonedx-sboms | ||
scan-args: |- | ||
--sbom=${{ matrix.project }}/build/reports/bom.json |