-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed CVE scan * Added JAVA_HOME env * Fixed versioning * Fixed versioning * Fixed versioning
- Loading branch information
1 parent
78cd9c2
commit 42aedde
Showing
2 changed files
with
23 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,8 @@ name: CVE Scanning for Maven | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'pom.xml' | ||
- 'allow-list.xml' | ||
|
@@ -14,7 +16,7 @@ on: | |
- '.github/workflows/cve-scanning.yml' | ||
|
||
jobs: | ||
build: | ||
depcheck: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
@@ -29,4 +31,19 @@ jobs: | |
- name: Build with Maven | ||
run: mvn clean install -DskipTests | ||
- name: CVE scanning | ||
run: mvn org.owasp:dependency-check-maven:check -DfailBuildOnCVSS=7 -DsuppressionFile="allow-list.xml" | ||
uses: dependency-check/[email protected] | ||
env: | ||
JAVA_HOME: /opt/jdk | ||
with: | ||
project: 'Common Domain Model' | ||
path: '.' | ||
format: 'HTML' | ||
out: 'reports' | ||
args: > | ||
--suppression allow-list.xml | ||
--failOnCVSS 7 | ||
- name: Upload results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: CVE Scan Report | ||
path: ${{github.workspace}}/reports |
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