Skip to content

Commit

Permalink
workaround for NuGet/Home#7503
Browse files Browse the repository at this point in the history
  • Loading branch information
thefringeninja committed Feb 24, 2022
1 parent 54ecb35 commit 87f7e96
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
- name: Scan for Vulnerabilities
shell: bash
run: |
dotnet nuget list source
dotnet restore
dotnet list package --vulnerable --include-transitive --framework ${{ matrix.framework }} | tee vulnerabilities.txt
! cat vulnerabilities.txt | grep -q "has the following vulnerable packages"
Expand Down Expand Up @@ -143,7 +144,7 @@ jobs:
id: get_version
run: |
echo "::set-output name=branch::${GITHUB_REF:10}"
dotnet nuget list source
dotnet tool restore
version=$(dotnet tool run minver -- --tag-prefix=v)
echo "::set-output name=version::${version}"
Expand Down Expand Up @@ -180,5 +181,6 @@ jobs:
shell: bash
if: contains(steps.get_version.outputs.branch, 'v')
run: |
dotnet nuget list source
dotnet tool restore
find . -name "*.nupkg" | xargs -n1 dotnet nuget push --api-key=${{ secrets.nuget_key }} --source https://api.nuget.org/v3/index.json

0 comments on commit 87f7e96

Please sign in to comment.