Skip to content

Commit

Permalink
Revert "Switched to elmahio/github-check-vulnerable-nuget-packages-ac…
Browse files Browse the repository at this point in the history
…tion@v1"

This reverts commit 5f97c49.
  • Loading branch information
ThomasArdal committed May 14, 2024
1 parent 5f97c49 commit a167977
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ jobs:
8.0.x
- name: Install dependencies
run: dotnet restore
- name: Check vulnerable NuGet packages
uses: elmahio/github-check-vulnerable-nuget-packages-action@v1
with:
project: 'src/Elmah.Io.NLog/Elmah.Io.Nlog.csproj'
- name: Check for vulnerable packages
shell: bash
run: |
set -e # This will cause the script to exit on the first error
OUTPUT=$(dotnet list src/Elmah.Io.NLog/Elmah.Io.Nlog.csproj package --vulnerable)
echo "$OUTPUT"
if echo "$OUTPUT" | grep -q 'no vulnerable packages'; then
echo "No vulnerable packages found"
else
if echo "$OUTPUT" | grep -q 'vulnerable'; then
echo "Vulnerable packages found"
exit 1
fi
fi
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
Expand Down

0 comments on commit a167977

Please sign in to comment.