# New-ConfigurationReleaseProtection

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

Project

PSPublishModule

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

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

**Outputs**

`PowerForge.ConfigurationReleaseProtectionSegment`

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

## Syntax

```
New-ConfigurationReleaseProtection
[-GenerateProvenance]
[-RequireCleanSource]
[-RequireSourceUnchanged]
[<CommonParameters>]
```

[#](#method-new-configurationreleaseprotection-switchparameter-switchparameter-switchparameter)

Parameter set: `All Parameter Sets`

## Description

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

## Examples

### Require clean, unchanged release inputs without embedding provenance

```powershell
New-ConfigurationReleaseProtection -RequireSourceUnchanged
```

### Generate signed release provenance

```powershell
New-ConfigurationReleaseProtection -GenerateProvenance
```

## Parameters

**-GenerateProvenance SwitchParameter optional**

Embeds signed source provenance in eligible signed GitHub module artefacts and implies both source checks.

**-RequireCleanSource SwitchParameter optional**

Requires a clean Git source snapshot when the release pipeline is planned.

**-RequireSourceUnchanged SwitchParameter optional**

Requires release inputs to remain unchanged after planning and implies a clean source snapshot.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:15656258144010748900BD860C4D9A2C16DE62C2BAD5FD9DFE7E7C9AC5FB7EAF -->
