Skip to content

chore: keep Dependabot pins of EF Core Design's crypto packages out of the test csproj - #195

Merged
CaffeinatedCoder merged 2 commits into
mainfrom
chore/dependabot-design-only-pins-194
Oct 18, 2026
Merged

CaffeinatedCoder merged 2 commits into
mainfrom
chore/dependabot-design-only-pins-194

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #194

Problem

Dependabot alerts #1–#13 flag System.Security.Cryptography.Xml and .Pkcs 9.0.0 in test/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.Design reference (→ Microsoft.Build.Tasks.Core, Microsoft.CodeAnalysis.Workspaces.MSBuild), which exists for MigrationScaffoldTests. 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: ignore System.Security.Cryptography.Xml and .Pkcs under 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

…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]>
@CaffeinatedCoder
CaffeinatedCoder merged commit b2930e0 into main Oct 18, 2026
@CaffeinatedCoder
CaffeinatedCoder deleted the chore/dependabot-design-only-pins-194 branch October 18, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/release Versioning, changelogs, release wiring chore Build, CI, packaging, refactoring with no behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependabot alerts and pins for System.Security.Cryptography.* reached only through the test-only EF Core Design reference

1 participant