Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/vulnerabilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ name: List vulnerable packages

on:
workflow_dispatch:
# Currently broken on .net 8, see https://github.com/NuGet/Home/issues/12954
# schedule:
# - cron: "0 0 * * *" # once a day
# pull_request:
schedule:
- cron: "0 0 * * *" # once a day
pull_request:

jobs:
list-vulnerable-packages:
Expand All @@ -26,11 +25,11 @@ jobs:
- name: Restore .NET Dependencies
run: dotnet restore Sentry.sln --nologo

# The dotnet list package command doesn't change its exit code on detection, so tee to a file and scan it
# The dotnet package list command doesn't change its exit code on detection, so tee to a file and scan it
# See https://github.com/NuGet/Home/issues/11315#issuecomment-1243055173
- name: List vulnerable packages
shell: bash
run: |
dotnet list ${{ github.workspace }}/Sentry.sln package --vulnerable --include-transitive | tee vulnerable.txt
dotnet package list --project Sentry.sln --vulnerable --include-transitive --no-restore | tee vulnerable.txt
# https://github.com/getsentry/sentry-dotnet/issues/2814
# ! grep 'has the following vulnerable packages' vulnerable.txt
Loading