Command
New-ConfigurationReleaseProtection
Creates opt-in source-state and provenance protections for module releases.
Syntax
New-ConfigurationReleaseProtection
[-GenerateProvenance]
[-RequireCleanSource]
[-RequireSourceUnchanged]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
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
New-ConfigurationReleaseProtection -RequireSourceUnchangedGenerate signed release provenance
New-ConfigurationReleaseProtection -GenerateProvenanceParameters
- -GenerateProvenance SwitchParameter
- Embeds signed source provenance in eligible signed GitHub module artefacts and implies both source checks.
- -RequireCleanSource SwitchParameter
- Requires a clean Git source snapshot when the release pipeline is planned.
- -RequireSourceUnchanged SwitchParameter
- 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.