Skip to content

Commit

Permalink
Limit folders to just CalmHub and Translators
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgough-ms committed Jan 2, 2025
1 parent f62f8cc commit 189f240
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/cve-scanning-maven.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CVE Scanning for Maven
name: CVE Scanning for Maven Projects

on:
workflow_dispatch:
Expand All @@ -21,6 +21,10 @@ jobs:
strategy:
matrix:
java-version: [ '21' ]
module-folder: [
'translator',
'calm-hub'
]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -34,25 +38,26 @@ jobs:

- name: Build with Maven
run: mvn verify
working-directory: ${{ matrix.module-folder }}

- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
env:
JAVA_HOME: /opt/jdk
with:
project: 'root'
path: '.'
project: '${{ matrix.module-folder }}'
path: '${{ matrix.module-folder }}'
format: 'HTML'
out: 'dependency-reports' # this is the default, no need to specify unless you wish to override it
out: '${{ matrix.module-folder }}-reports' # this is the default, no need to specify unless you wish to override it
args: >
--suppression .github/maven-cve-ignore-list.xml
--failOnCVSS 5
--enableRetired
--suppression .github/maven-cve-ignore-list.xml
--failOnCVSS 5
--enableRetired
- name: Upload Test results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Depcheck Report ${{ github.job }}
path: dependency-reports
name: Depcheck report ${{ github.job }} ${{ matrix.module-folder }}
path: ${{ github.workspace }}/${{ matrix.module-folder }}-reports

0 comments on commit 189f240

Please sign in to comment.