Skip to content

Dependency-Check

Dependency-Check #1

Workflow file for this run

name: Dependency-Check
on:
schedule:
- cron: "0 7 * * 4" # weekly Thu 07:00 UTC
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
dep-check:
name: OWASP Dependency-Check
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore .NET
run: dotnet restore backend/CCE.sln
- name: Run Dependency-Check
uses: dependency-check/Dependency-Check_Action@main
with:
project: cce-knowledge-center
path: ./backend
format: SARIF
out: ./dep-check-reports
args: >
--suppression security/dependency-check-suppression.xml
--enableRetired
--failOnCVSS 7
- name: Upload SARIF
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: dep-check-reports/dependency-check-report.sarif
category: owasp-dependency-check
- name: Upload report artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: dependency-check-report
path: dep-check-reports/