File tree 1 file changed +4
-13
lines changed
1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,10 @@ jobs:
22
22
8.0.x
23
23
- name : Install dependencies
24
24
run : dotnet restore
25
- - name : Check for vulnerable packages
26
- run : |
27
- set -e # This will cause the script to exit on the first error
28
- OUTPUT=$(dotnet list src/Elmah.Io.Functions/Elmah.Io.Functions.csproj package --vulnerable)
29
- echo "$OUTPUT"
30
- if echo "$OUTPUT" | grep -q 'no vulnerable packages'; then
31
- echo "No vulnerable packages found"
32
- else
33
- if echo "$OUTPUT" | grep -q 'vulnerable'; then
34
- echo "Vulnerable packages found"
35
- exit 1
36
- fi
37
- fi
25
+ - name : Check vulnerable NuGet packages
26
+ uses : elmahio/github-check-vulnerable-nuget-packages-action@v1
27
+ with :
28
+ project : ' src/Elmah.Io.Functions/Elmah.Io.Functions.csproj'
38
29
- name : Build
39
30
run : dotnet build --configuration Release --no-restore
40
31
- name : Test
You can’t perform that action at this time.
0 commit comments