Improve PowerShell module signing validation#17
Merged
Marc-André Moreau (mamoreau-devolutions) merged 1 commit intoMay 26, 2026
Merged
Conversation
Add pipeline-friendly module validation and signing workflows, remove legacy portable aliases, and align portable TrustedPublisher handling with Windows PowerShell execution policy behavior. This adds TrustedPublisher and Disallowed handling in the file-backed pcert store, expands Jordan Borean parity coverage, and fixes portable trust-chain edge cases for explicit anchors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
e234e2e
into
master
36 checks passed
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.
Summary
Get-Module/Get-InstalledModuleinput support forTest-PsignModuleandProtect-PsignModuleGet-PortableSignature/Set-PortableSignaturecompatibility aliasespcert:\...\TrustedPublisherhandling and makeTest-PsignModule -RequireTrustedPublishermatch Windows PowerShell publisher trust semanticspcert:\...\Disallowedhandling to model PowerShell's "Never run" behaviorpcert:TrustedPublisher/Disallowed mapping with a link to Jordan's notesValidation
cargo test -p psign-authenticode-trust --lockedPowerShell\build.ps1 -Configuration DebugInvoke-Pester PowerShell\tests\PortableCertStore.Provider.Tests.ps1, PowerShell\tests\TestPsignModule.Expanded.Tests.ps1, PowerShell\tests\PortableSignature.Compatibility.Tests.ps1 -Output Detailed