Skip to content

Commit a3eeb56

Browse files
Add Scan for Vulnerable Dependencies (#4082)
* Add Scan for Vulnerable Dependencies * fix workflow * Add dependabot * Added @vncoelho suggestions * Added dotnet restore --------- Co-authored-by: Will <[email protected]>
1 parent e29b885 commit a3eeb56

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@ jobs:
3131
- name: Check Format (*.cs)
3232
run: dotnet format --verify-no-changes --verbosity diagnostic
3333

34+
Check-Vulnerable:
35+
name: Scan for Vulnerable Dependencies
36+
needs: [Format]
37+
timeout-minutes: 15
38+
runs-on: ubuntu-latest
39+
continue-on-error: true
40+
steps:
41+
- name: Checkout
42+
uses: actions/[email protected]
43+
44+
- name: Setup .NET
45+
uses: actions/[email protected]
46+
with:
47+
dotnet-version: ${{ env.DOTNET_VERSION }}
48+
49+
- name: Restore
50+
run: dotnet restore
51+
52+
- name: Scan for Vulnerable Dependencies
53+
run: dotnet list package --vulnerable --include-transitive
54+
3455
Test-Everything:
3556
needs: [Format]
3657
timeout-minutes: 15

0 commit comments

Comments
 (0)