fix(ci): unblock main — SourceLink 10.0.401 + IDE0370 - #193
Merged
Merged
Conversation
Bump Microsoft.SourceLink.GitHub to 10.0.401 so restore no longer fails NU1902 (GHSA-23fw-v26w-5fgq via Microsoft.Build.Tasks.Git 10.0.300). Remove unnecessary null-forgiving operators that IDE0370 treats as errors under TreatWarningsAsErrors.
This was referenced Sep 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Main (and every Dependabot PR based on it) is red because Cake Restore/Build fails for two independent reasons:
Microsoft.SourceLink.GitHub10.0.300 pullsMicrosoft.Build.Tasks.Git10.0.300, which is flagged by GHSA-23fw-v26w-5fgq / CVE-2026-62900. WithTreatWarningsAsErrors, restore fails. Introduced by merging Bump Microsoft.SourceLink.GitHub from 10.0.102 to 10.0.300 #176; advisory published 2026-09-08.!onJsonValue.Create(...)inODataQueryOptionsDocumentFilter.csbecomes an error underAnalysisLevel=latest+TreatWarningsAsErrors(from the Health TOP5: deps, quality gates, ValidationHarness in CI, multi-target, hygiene #177 health work).Evidence: local
dotnet cake --target=Buildon currentmainfails with NU1902; after SourceLink-only bump, restore passes and build fails IDE0370. Both fixed here → Build/Test/coverage/Pack succeed locally (17 tests, ~34% coverage ≥ 30% gate).CodeQL Analyze fails for the same autobuild/restore reason.
Changes
Microsoft.SourceLink.GitHub10.0.300 → 10.0.401 inSource/Directory.Build.propsand the projectUpdateAfter merge
Rebase/rerun Dependabot PRs. Expected to go green (patch/minor, non-major):
Do not merge majors without approval: #179 checkout v7, #181 setup-dotnet v6, #188 MinVer 8, plus older #152/#162.
Test plan