Repository navigation
chore: keep Dependabot security pins of build-only packages out of src/ - #53
Merged
Merged
Conversation
On 2026-10-18 Dependabot opened #49 and #51, which pin System.Security.Cryptography.Pkcs and .Xml directly in src/EFCore.ComplexIndexes. Both packages reach the core package only through Microsoft.EntityFrameworkCore.Design (PrivateAssets=all), so the pins would ship them to every consumer. The src/ job skipped Xml as configured. The test-project job, whose ignore list lacked it, followed the ProjectReference and wrote the pin into the src/ csproj. The grouped src/ job opened #50 for Pkcs, which no ignore list named. - dependabot.yml: ignore Xml and Pkcs under both nuget entries, and say why the test entry needs them. - PackagingConventionTests: fail a public reference that a build-only reference reaches and no other public reference does, read from each project's restore graph. Core's EF Core Abstractions reference (the [10, 11) ceiling) is the one named exemption, and an exemption that exempts nothing fails too. - CLAUDE.md: describe both. Closes #52 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 18, 2026
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 18, 2026
Brings in #45 (tracking culture, two supported lines), #48 (Latest handling) and #53 (Dependabot build-only pins). Conflicts: ChangelogConsistencyTests, PackagingConventionTests and SecurityPolicyConsistencyTests, all resolved to main. 2085324 added a SemanticVersion harness type here so the convention tests could read 11.0.0-preview.1; #45 solved the same problem on main with ReleaseVersion (prerelease parsing, SemVer precedence, the "## <version>" heading with a suffix) and made the security-policy checks aware of two lines. SemanticVersion is unused after the merge and is removed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 #52
Problem
Dependabot security updates opened #49, #50 and #51, which add direct
System.Security.Cryptography.Pkcs/.Xmlreferences tosrc/EFCore.ComplexIndexes. Both packages reach the core package only throughMicrosoft.EntityFrameworkCore.Design(PrivateAssets=all). Merging any of these PRs would make the core nuspec declare a dependency consumers never had. Every check passed on all three.Why Xml got past its ignore: the
src/job (run 39130476774) loaded the ignore and loggedSkipping ignored dependency System.Security.Cryptography.Xmleach time, and it opened only #50 (Pkcs, which no ignore list named). #49 and #51 came from the test-project job (run 39130476958). That job's ignore list holds only the EF Core and Npgsql entries. It followed the ProjectReference and wrotePinned … in /src/EFCore.ComplexIndexes/EFCore.ComplexIndexes.csproj. An ignore undersrc/covers only one of the two jobs that can editsrc/.Change
.github/dependabot.yml: ignoreSystem.Security.Cryptography.Xmland.Pkcsunder both nuget entries, with a comment on why the test entry needs them.PackagingConventionTests.No_public_reference_pins_a_build_only_dependency: reads each shipping project'sobj/project.assets.jsonand fails a publicPackageReferencethat aPrivateAssets=allreference reaches and no other public reference does. That is the shape of a Dependabot pin, and the test catches it whichever job writes it. A pin of a package some other public dependency already ships (e.g. Pkcs via EF's SQL Server provider) is not flagged. Core'sMicrosoft.EntityFrameworkCore.Abstractionsis reached through Design too, but it is public on purpose, because it carries the[10.0.0, 11.0.0)ceiling. It is the one named exemption, and an exemption that no longer exempts anything fails the test.CLAUDE.md: both of the above.Tests
Full suite locally: 347 passed (including PostgreSQL 18 integration). How I checked the guard:
EFCore.ComplexIndexes -> System.Security.Cryptography.Xml (reached otherwise only through Microsoft.EntityFrameworkCore.Design).Whether the new ignores hold can only be confirmed on Dependabot's next run, by watching whether the PRs come back after #49–#51 are closed.
🤖 Generated with Claude Code