Skip to content

fix(ci): Drop SourceLink package, use the SDK's (backport #24464) - #24499

Merged
agneszitte merged 2 commits into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-24464
Sep 10, 2026
Merged

agneszitte merged 2 commits into
release/stable/6.7from
mergify/bp/release/stable/6.7/pr-24464

Conversation

@mergify

@mergify mergify Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue: closes #24463

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

Every CI build has been failing during restore since the advisory database refreshed on 2026-09-09:

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

It hit 17 projects and took down Build - Native Binaries (macOS), Tests - Unit Tests, and every WebAssembly Skia Runtime Tests job — those last ones fail while building Uno.NUnitTransformTool, so they never reach a single test.

Root cause

src/Directory.Build.props carried 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 — but Microsoft.NET.Sdk.SourceLink.props skips that import whenever a Microsoft.SourceLink.* package is referenced:

<SuppressImplicitGitSourceLink Condition="'$(PkgMicrosoft_SourceLink_Common)' != ''">true</SuppressImplicitGitSourceLink>

So the reference was pushing the SDK's current copy aside and pinning the three-year-old 8.0.0 Microsoft.Build.Tasks.Git in its place.

There is no 8.0.1 to bump to — 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. Deleting it is the fix: the SDK's SourceLink takes over.

The surrounding PropertyGroup is untouched, so PublishRepositoryUrl, the .pdb-in-.nupkg setting, and the EmbedUntrackedSources=false workaround for mono/linker#1409 all still apply.

Validation

Restore — Uno.NUnitTransformTool in Release, red before / green after:

result
before error NU1902: … Microsoft.Build.Tasks.Git 8.0.0 …
after Restored … (in 150 ms)

Restore (full CI scope) — build/filters/Uno.UI-packages-reference.slnf in Release, on the exact CI SDK (11.0.100-preview.7.26381.103 from build/ci/net11/_global.json): clean, zero NU190x, zero errors.

Compile — Uno.NUnitTransformTool builds Release with 0 errors.

SourceLink still works — generated obj/Release/Uno.NUnitTransformTool.sourcelink.json:

{"documents":{"D:\\Work\\uno\\…\\*":"https://raw.githubusercontent.com/unoplatform/uno/611bb279f91e55c89e51ec767746a21890461722/*"}}

and the evaluated properties:

PublishRepositoryUrl  = true
RepositoryUrl         = https://github.com/unoplatform/uno
EmbedUntrackedSources = false

PR Checklist ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jox2uQ5z5SLRqfrhGMg2ZX


This is an automatic backport of pull request #24464 done by [Mergify](https://mergify.com).

MartinZikmund and others added 2 commits September 10, 2026 23:20
The explicit Microsoft.SourceLink.GitHub 8.0.0 reference suppressed the
SDK's implicit SourceLink import and pinned Microsoft.Build.Tasks.Git
8.0.0, which NuGet audit now flags (GHSA-23fw-v26w-5fgq).

fixes #24463

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Jox2uQ5z5SLRqfrhGMg2ZX
(cherry picked from commit 730e6e4)
Co-authored-by: Xiaotian Gu <[email protected]>
(cherry picked from commit e0a4c08)
@mergify mergify Bot mentioned this pull request Sep 10, 2026
4 of 5 tasks
@agneszitte

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@agneszitte
agneszitte merged commit 5fd0c83 into release/stable/6.7 Sep 10, 2026
20 of 34 checks passed
@agneszitte
agneszitte deleted the mergify/bp/release/stable/6.7/pr-24464 branch September 10, 2026 23:49
@unodevops

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants