Address MR feedback #72
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
name: CVE Scanning for Maven | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'pom.xml' | |
- 'allow-list.xml' | |
- '.github/workflows/cve-scanning.yml' | |
pull_request: | |
paths: | |
- 'pom.xml' | |
- 'allow-list.xml' | |
- '.github/workflows/cve-scanning.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- 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" |