Merge pull request #117 from finos/feature/github-actions #69
This file contains hidden or 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
| # workflows/cve-scanning.yml | |
| name: CVE Scanning for Maven | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| # Cancel previous jobs | |
| concurrency: | |
| group: cve-scan-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| security-events: write | |
| jobs: | |
| depchecktest: | |
| runs-on: ubuntu-latest | |
| name: depecheck_test | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Build with Maven | |
| run: mvn -B clean package -DskipTests | |
| working-directory: . | |
| - name: Depcheck | |
| uses: dependency-check/[email protected] | |
| id: Depcheck | |
| env: | |
| JAVA_HOME: /opt/jdk | |
| with: | |
| project: ${{github.repository}} | |
| path: '.' | |
| format: 'HTML' | |
| args: > | |
| --suppression ./allow-list.xml | |
| --failOnCVSS 7 | |
| --enableRetired | |
| --exclude **/*-javadoc.jar | |
| --exclude **/*-sources.jar | |
| --out ./reports | |
| - name: Upload Test results | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Depcheck report | |
| path: ${{github.workspace}}/reports |