Skip to content

Commit ab2d7c4

Browse files
authored
ci: re-enable List vulnerable packages (#4756)
1 parent 356f8e9 commit ab2d7c4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/vulnerabilities.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ name: List vulnerable packages
22

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

109
jobs:
1110
list-vulnerable-packages:
@@ -26,11 +25,11 @@ jobs:
2625
- name: Restore .NET Dependencies
2726
run: dotnet restore Sentry.sln --nologo
2827

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

0 commit comments

Comments
 (0)