Repository navigation
chore: keep Dependabot pins of EF Core Design's crypto packages out of the test csproj - #195
Merged
Merged
Conversation
…f the test csproj Dependabot alerts #1-#13 and security PRs #160/#161 concern System.Security.Cryptography.Xml and .Pkcs 9.0.0. Both reach the repository only through the EF Core test project's Microsoft.EntityFrameworkCore.Design reference (-> Microsoft.Build.Tasks.Core and Microsoft.CodeAnalysis.Workspaces.MSBuild), which exists for MigrationScaffoldTests. Scaffolding never signs or verifies XML or parses PKCS data, and no shipping project references Design, so consumers never receive either package. The PRs' remedy is a direct pin of a toolchain internal in the test csproj, and each new advisory brings another. Ignore both packages under the /test/* entry, as EFCore.ComplexIndexes does, and say why. The alerts are dismissed as not used; NU1903 stays a warning, so a new advisory still shows up at build time. Closes #194 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 18, 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.
Closes #194
Problem
Dependabot alerts #1–#13 flag
System.Security.Cryptography.Xmland.Pkcs9.0.0 intest/CodoMetis.ValueRanges.EFCore.PostgreSQL.Tests. Security updates #160 and #161 would fix them by pinning 9.0.21 directly in that csproj.Both packages reach the repository only through that project's
Microsoft.EntityFrameworkCore.Designreference (→Microsoft.Build.Tasks.Core,Microsoft.CodeAnalysis.Workspaces.MSBuild), which exists forMigrationScaffoldTests. Scaffolding never signs or verifies XML and never parses PKCS data. No shipping project references Design, so consumers never receive either package. Pinning would add two direct references to toolchain internals that nobody maintains on purpose, and every new advisory would bring another. This is the same case as CaffeinatedCoder/EFCore.ComplexIndexes#52, except that there the pins would have shipped to consumers.Change
.github/dependabot.yml: ignoreSystem.Security.Cryptography.Xmland.Pkcsunder the/test/*entry, with the reason. Correct the header comment: security update PRs honour the ignore list, and alerts and NuGetAudit still report everything.Outside the diff:
Tests
No code change. The YAML parses, and the ignore list holds the two new entries. The conventions suite passes (324). Whether the ignores hold can only be seen on Dependabot's next run, by checking that #160 and #161 are not reopened.
🤖 Generated with Claude Code