Skip to content

Assert trusted roots relative path with respect to NuGet.Packaging - #53449

Merged
Nigusu-Allehu merged 2 commits into
mainfrom
dev-nyenework-assert-nuget-packaging
Mar 16, 2026
Merged

Nigusu-Allehu merged 2 commits into
mainfrom
dev-nyenework-assert-nuget-packaging

Conversation

@Nigusu-Allehu

Copy link
Copy Markdown
Member

This test ensures NuGet package signing is not broken if any changes are made to the relative path of the trusted root certificate bundles.

NuGet.Packaging.dll has an invariant that trusted root bundles must be located at the relative path ./trustedroots/

@Nigusu-Allehu Nigusu-Allehu self-assigned this Mar 13, 2026
@Nigusu-Allehu
Nigusu-Allehu requested a review from a team March 13, 2026 20:15
@Nigusu-Allehu
Nigusu-Allehu marked this pull request as ready for review March 13, 2026 20:23
Copilot AI review requested due to automatic review settings March 13, 2026 20:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a regression test to protect the .NET SDK layout contract relied on by NuGet package signing: the trustedroots/ certificate bundles must remain at the expected relative location for NuGet.Packaging.dll usage.

Changes:

  • Introduces an xUnit test that asserts NuGet.Packaging.dll exists in the SDK folder under test.
  • Asserts the trustedroots/codesignctl.pem and trustedroots/timestampctl.pem bundles exist at the expected relative path under the same SDK folder.

@Nigusu-Allehu
Nigusu-Allehu merged commit 31f158e into main Mar 16, 2026
27 checks passed
@Nigusu-Allehu
Nigusu-Allehu deleted the dev-nyenework-assert-nuget-packaging branch March 16, 2026 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants