Skip to content

Dependency Check

Dependency Check #33

name: Dependency Check
on:
push:
branches: [main]
schedule:
- cron: '41 6 * * 1'
jobs:
owasp:
name: OWASP Dependency Check
runs-on: ubuntu-latest
environment: MavenCentralDeploy
permissions:
contents: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Run OWASP Dependency Check
run: |
mvn -pl streamfence-core \
--no-transfer-progress \
org.owasp:dependency-check-maven:check \
-Dgpg.skip=true \
-DfailBuildOnCVSS=7 \
-DsuppressionFile=.github/dependency-check-suppressions.xml \
-Dformats=HTML,SARIF \
-DnvdApiKey=${{ secrets.NVD_API_KEY }}
continue-on-error: true
- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v4
if: always() && hashFiles('streamfence-core/target/dependency-check-report.sarif') != ''
with:
sarif_file: streamfence-core/target/dependency-check-report.sarif
category: dependency-check
- name: Upload HTML report
uses: actions/upload-artifact@v7
if: always() && hashFiles('streamfence-core/target/dependency-check-report.html') != ''
with:
name: dependency-check-report
path: streamfence-core/target/dependency-check-report.html
retention-days: 30