Repository navigation
Description
Current behavior 🐛
Since the advisory database update on 2026-09-09, every CI build fails during restore with:
error NU1902: Warning As Error: Package 'Microsoft.Build.Tasks.Git' 8.0.0 has a known moderate
severity vulnerability, https://github.com/advisories/GHSA-23fw-v26w-5fgq
This hits 17 projects across the repo and takes down the Build - Native Binaries (macOS), Tests - Unit Tests, and every WebAssembly Skia Runtime Tests job (the latter fail while building Uno.NUnitTransformTool, so they never even get to run tests). Example build: 232744.
Affected projects:
FontFallbackPreprocessor, Uno.Foundation.Logging, Uno.Foundation.Reference, Uno.HotReload, Uno.NUnitTransformTool, Uno.ReferenceImplComparer, Uno.UI, Uno.UI.Composition, Uno.UI.DevServer.Cli, Uno.UI.Dispatching.Reference, Uno.UI.RemoteControl.Host, Uno.UI.RemoteControl.Server, Uno.UI.RemoteControl.Server.Processors, Uno.UI.RemoteControl.ServerCore, Uno.WinRT.Reference, Uno.WinUI.Graphics2DSK.Crossruntime, and the generated skiasharp_*_nativeassets-tmp-build project.
Root cause: src/Directory.Build.props carries an explicit PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0". Since .NET SDK 8.0.100 the SDK ships SourceLink itself and imports it implicitly from Microsoft.NET.Sdk.SourceLink.props; that import is skipped whenever a Microsoft.SourceLink.* package is referenced. So the explicit reference was suppressing the SDK's current copy and pinning the unmaintained 8.0.0 Microsoft.Build.Tasks.Git alongside it.
There is no 8.0.1. The package is now versioned with the SDK band (10.0.x / 11.0.x), so bumping the PackageReference would just re-introduce the version skew the implicit import exists to avoid.
Expected behavior 🎯
Restore succeeds, and SourceLink keeps working — packages keep their RepositoryUrl, and the .sourcelink.json still maps sources to raw.githubusercontent.com/unoplatform/uno/<sha>/*.
How to reproduce it 🔬
dotnet restore src/Uno.NUnitTransformTool/Uno.NUnitTransformTool.csproj \
-p:Configuration=Release -p:BUILD_REPOSITORY_PROVIDER=GitHub(The audit is demoted to a warning in Debug, so Release — what CI builds — is required to see it.)
Workaround 🛠️
Build Debug locally, where WarningsNotAsErrors already covers NU1901–NU1904. There is no workaround for CI short of the fix.
Affected platforms
Build infrastructure — all platforms.
Activity
fix(ci): Drop SourceLink package, use the SDK's