Skip to content

Commit

Permalink
retire dotnet-retire
Browse files Browse the repository at this point in the history
  • Loading branch information
thefringeninja committed Apr 22, 2021
1 parent a853663 commit 3cecc2d
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,28 @@ jobs:
strategy:
fail-fast: false
matrix:
framework: [netcoreapp3.1, net5.0, net48]
os: [ubuntu-18.04, windows-latest]
sdk: [5.0-focal, 3.1-bionic]
runs-on: ubuntu-latest
name: scan-vulnerabilities/${{ matrix.sdk }}
container: mcr.microsoft.com/dotnet/sdk:${{ matrix.sdk }}
runs-on: ${{ matrix.os }}
name: scan-vulnerabilities/${{ matrix.os }}/${{ matrix.framework }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install netcoreapp3.1
uses: actions/setup-dotnet@v1
if: matrix.framework == 'netcoreapp3.1'
with:
dotnet-version: 3.1.x
- name: Install net5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Scan for Vulnerabilities
run: |
dotnet tool restore
dotnet restore
dotnet tool run dotnet-retire
dotnet list package --vulnerable --include-transitive --framework ${{ matrix.framework }} | tee vulnerabilities.txt
! cat vulnerabilities.txt | grep -q "has the following vulnerable packages"
build-dotnet:
timeout-minutes: 20
strategy:
Expand Down

0 comments on commit 3cecc2d

Please sign in to comment.