fix: pin AngleSharp to 1.5.2 to clear GHSA-pgww-w46g-26qg#514
Merged
Conversation
GitHub's advisory database just flagged AngleSharp 1.4.0 (pulled transitively by bunit 2.7.2) as moderate severity. NuGetAuditLevel is moderate here, so restore now fails as an error on every branch, including main. Pin the first patched release via central package management, following the same direct-PackageReference override pattern already used for Microsoft.OpenApi. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EjhXzREvfEREaP8bw6HJ43
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
bunit2.7.2) as moderate severity (GHSA-pgww-w46g-26qg). This repo'sNuGetAuditLevel=moderateturns that into a restore error, which now fails on every branch includingmain(confirmed by reproducing it locally againstmain, and by CI failures on unrelated PRs Bump Npgsql.EntityFrameworkCore.PostgreSQL and Serilog #510/Bump NSubstitute from 5.3.0 to 6.0.0 #511).AngleSharpto the first patched release (1.5.2) via central package management, with a directPackageReferenceinFrontend.Tests.Unitto force the fixed version into the graph — the same idiom already used for theMicrosoft.OpenApioverride.Test plan
dotnet build tests/LotroKoniecDev.Frontend.Tests.Unit -c Release— 0 warnings, 0 errorsdotnet test tests/LotroKoniecDev.Frontend.Tests.Unit -c Release— 414/414 passed (bUnit still works against the bumped AngleSharp)dotnet build LotroKoniecDev.slnx -c Release— full solution, 0 warnings, 0 errors🤖 Generated with Claude Code
https://claude.ai/code/session_01EjhXzREvfEREaP8bw6HJ43