WIP: Add ADR management to CalmHub Server (#716) #572
Workflow file for this run
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 Projects | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 8,18 * * 1-5' | |
push: | |
paths: | |
- '**/pom.xml' | |
- '.github/workflows/maven-cve-ignore-list.xml' | |
- '.github/workflows/cve-scanning-maven.yml' | |
pull_request: | |
paths: | |
- '**/pom.xml' | |
- '.github/workflows/maven-cve-ignore-list.xml' | |
- '.github/workflows/cve-scanning-maven.yml' | |
jobs: | |
depchecktest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: [ '21' ] | |
module-folder: [ | |
'translator', | |
'calm-hub' | |
] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
cache: maven | |
distribution: 'adopt' | |
- name: Build with Maven | |
run: mvn -DskipTests verify | |
working-directory: ${{ matrix.module-folder }} | |
- name: Depcheck | |
uses: dependency-check/Dependency-Check_Action@main | |
id: Depcheck | |
env: | |
JAVA_HOME: /opt/jdk | |
with: | |
project: '${{ matrix.module-folder }}' | |
path: '${{ matrix.module-folder }}' | |
format: 'HTML' | |
out: '${{ matrix.module-folder }}-reports' | |
args: > | |
--suppression .github/maven-cve-ignore-list.xml | |
--failOnCVSS 5 | |
--enableRetired | |
--exclude "**/package.json" | |
--exclude "**/package-lock.json" | |
--disableNodeAudit | |
--disableYarnAudit | |
--disableRetireJS | |
- name: Upload Test results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Depcheck report ${{ github.job }} ${{ matrix.module-folder }} | |
path: ${{ github.workspace }}/${{ matrix.module-folder }}-reports |