Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell: add support for signing .ps1xml and .psd1 files #777

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

dtivel
Copy link
Collaborator

@dtivel dtivel commented Oct 26, 2024

Resolve #769

This change adds support for signing .ps1xml, .psd1, and .cdxml files.

  • Extracted app initialization code in Sign.Cli/Program.cs into a reusable class AppInitializer.
  • Refactored test certificate creation code into SelfIssuedCertificateCreator.
  • Refactored test asset reading code into TestAssets.
  • Moved TemporaryFile into Sign.TestInfrastructure project.
  • Created RequiresElevationTheory attribute and TrustedCertificateFixture for tests that require trusted certificates. These tests will run when elevated or when running in CI and skip when not.
  • Added tests for PowerShell file signing.

@dtivel dtivel requested a review from a team as a code owner October 26, 2024 23:53
clairernovotny
clairernovotny previously approved these changes Oct 28, 2024
@dtivel dtivel merged commit 1bafd9d into main Oct 28, 2024
3 checks passed
@dtivel dtivel deleted the dtivel/powershell branch October 28, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Incomplete PowerShell module signing support
3 participants