Skip to content

Commit

Permalink
Create CVE Scanning (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
josspo authored Dec 12, 2023
1 parent 4516824 commit 02cb147
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .cve/allow-list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
</suppressions>
38 changes: 38 additions & 0 deletions .github/workflows/cve-scanning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CVE Scanning

on:
push:

jobs:
dotnet-modules-scan:
name: dotnet-scan
runs-on: ubuntu-latest
continue-on-error: false

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build project with dotnet
run: dotnet build --configuration Release
working-directory: 'src'
- name: List vulnerable libraries
run: dotnet list package --vulnerable --include-transitive
working-directory: 'src'
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@1b5d19fd4a32ff0ff982e8c9d8e27dbf7ac8a46c
id: Depcheck
with:
project: '.'
path: '.'
format: 'HTML'
out: 'reports'
args: >
--suppression .cve/allow-list.xml
--failOnCVSS 7
--enableRetired
- name: Upload Test results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: Depcheck report
path: ${{ github.workspace }}/reports
1 change: 1 addition & 0 deletions src/Examples/WpfFdc3/WpfFdc3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<EnableWindowsTargeting>true</EnableWindowsTargeting>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 02cb147

Please sign in to comment.