Skip to content

Pin Microsoft.Build.Tasks.Git to 10.0.401 via central package management - #1871

Draft
tonyqus with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-nu1902-vulnerability
Draft

tonyqus with Copilot wants to merge 3 commits into
masterfrom
copilot/fix-nu1902-vulnerability

Conversation

Copilot AI commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Builds were failing with NU1902 (warnings treated as errors) due to a vulnerable Microsoft.Build.Tasks.Git resolution path. This change remediates the dependency graph at the central package-management layer to force a non-vulnerable version.

  • Central vulnerability remediation

    • Added an explicit central PackageVersion for Microsoft.Build.Tasks.Git.
    • Set version to 10.0.401 (safe baseline called out in the issue context).
  • Version coherence for SourceLink stack

    • Introduced a shared SourceLinkVersion property in Directory.Packages.props.
    • Bound both Microsoft.Build.Tasks.Git and Microsoft.SourceLink.GitHub to the same property to prevent drift in future updates.
  • Scope

    • Changes are limited to Directory.Packages.props; no project-level package references were modified.
<PropertyGroup>
  <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
  <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
  <SourceLinkVersion>10.0.401</SourceLinkVersion>
</PropertyGroup>

<ItemGroup>
  <PackageVersion Include="Microsoft.Build.Tasks.Git" Version="$(SourceLinkVersion)" />
  <PackageVersion Include="Microsoft.SourceLink.GitHub" Version="$(SourceLinkVersion)" />
</ItemGroup>

Copilot AI and others added 2 commits September 14, 2026 00:39
Co-authored-by: tonyqus <772561+tonyqus@users.noreply.github.com>
Co-authored-by: tonyqus <772561+tonyqus@users.noreply.github.com>
@tonyqus tonyqus added this to the NPOI 2.8.1 milestone Sep 14, 2026
Copilot AI changed the title [WIP] Fix issue #1870 by upgrading Microsoft.Build.Tasks.Git Pin Microsoft.Build.Tasks.Git to 10.0.401 via central package management Sep 14, 2026
Copilot AI requested a review from tonyqus September 14, 2026 00:41
@tonyqus tonyqus closed this Sep 14, 2026
@tonyqus tonyqus reopened this Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants