Skip to content

Commit 3e6260d

Browse files
fix: suppress NU1900 from private NuGet feed in CI restore
NuGet vulnerability audit queries all sources in nuget.config even when AccessToNugetFeed=false (which only affects RestoreSources via MSBuild). The private Azure DevOps feed is unreachable in CI without auth, causing NU1900 treated as warning-as-error. Add --ignore-failed-sources to dotnet restore so the unavailable private source is skipped gracefully.
1 parent f040cb2 commit 3e6260d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/PR-Build-And-Test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
${{ runner.os }}-nuget-
3030
3131
- name: Restore with dotnet
32-
run: dotnet restore /p:AccessToNugetFeed=false
32+
run: dotnet restore /p:AccessToNugetFeed=false --ignore-failed-sources
3333

3434
- name: Restore local dotnet tools
3535
run: dotnet tool restore

0 commit comments

Comments
 (0)