Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-13

API Reference

Command

New-ConfigurationReleaseProtection

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.ConfigurationReleaseProtectionSegment

Creates opt-in source-state and provenance protections for module releases.

Remarks

All protections are disabled unless explicitly selected. Generating provenance also requires a clean source snapshot and protects it from changes through packaging.

Examples

Authored help example

Require clean, unchanged release inputs without embedding provenance


New-ConfigurationReleaseProtection -RequireSourceUnchanged
        

Generate signed release provenance


New-ConfigurationReleaseProtection -GenerateProvenance
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ConfigurationReleaseProtection [-GenerateProvenance] [-RequireCleanSource] [-RequireSourceUnchanged] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

GenerateProvenance SwitchParameter optionalposition: namedpipeline: False
Embeds signed source provenance in eligible signed GitHub module artefacts and implies both source checks.
RequireCleanSource SwitchParameter optionalposition: namedpipeline: False
Requires a clean Git source snapshot when the release pipeline is planned.
RequireSourceUnchanged SwitchParameter optionalposition: namedpipeline: False
Requires release inputs to remain unchanged after planning and implies a clean source snapshot.

Outputs

PowerForge.ConfigurationReleaseProtectionSegment