Skip to content

Commit

Permalink
Fix CVE scanning (#2561)
Browse files Browse the repository at this point in the history
* Fixed CVE scan

* Added JAVA_HOME env

* Fixed versioning

* Fixed versioning

* Fixed versioning
  • Loading branch information
SimonCockx authored Dec 1, 2023
1 parent 78cd9c2 commit 42aedde
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/cve-scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: CVE Scanning for Maven
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'pom.xml'
- 'allow-list.xml'
Expand All @@ -14,7 +16,7 @@ on:
- '.github/workflows/cve-scanning.yml'

jobs:
build:
depcheck:

runs-on: ubuntu-latest

Expand All @@ -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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,7 @@ venv/
# Docusaurus website
website/.docusaurus
website/build
website/node_modules
website/node_modules

# CVE scan reports
/reports/

0 comments on commit 42aedde

Please sign in to comment.