Module maintainers need one self-describing PowerShell Gallery publishing credential across the reusable workflow, publishing action, configuration, and documentation. A single name makes the credential easy to audit and prevents mismatched caller and action contracts.
Request
Desired experience
Publishing a module requires PSGALLERY_API_KEY at every workflow and action boundary. A caller provides that one credential, and the reusable workflow forwards it unchanged to the publishing action.
Acceptance criteria
- The reusable workflow declares and consumes
PSGALLERY_API_KEY
- The Publish-Module reusable workflow and Publish-PSModule action input use
PSGALLERY_API_KEY
- The publishing action's environment variable and PowerShell variable identify the PowerShell Gallery credential consistently
- Canonical caller templates and Process-PSModule documentation require
PSGALLERY_API_KEY
- Publishing to the PowerShell Gallery continues to use the supplied credential
Technical decisions
Credential contract: Use PSGALLERY_API_KEY for the workflow secret, publishing action input, and action environment variable. This name is explicit about both its service and purpose.
PowerShell command interface: The underlying Publish-PSResource cmdlet keeps its -ApiKey parameter because that is the cmdlet's public PowerShell interface. The value passed to it is held in the action's $psGalleryApiKey variable.
Workflow scope: Publish-Module forwards PSGALLERY_API_KEY directly to Publish-PSModule. No translation is needed at any GitHub Actions boundary.
Documentation: Setup, caller, workflow-reference, design, and action documentation name only PSGALLERY_API_KEY as the required publishing credential.
Implementation plan
Credential contract
Documentation and validation
Implementation is delivered by PR #408.
Module maintainers need one self-describing PowerShell Gallery publishing credential across the reusable workflow, publishing action, configuration, and documentation. A single name makes the credential easy to audit and prevents mismatched caller and action contracts.
Request
Desired experience
Publishing a module requires
PSGALLERY_API_KEYat every workflow and action boundary. A caller provides that one credential, and the reusable workflow forwards it unchanged to the publishing action.Acceptance criteria
PSGALLERY_API_KEYPSGALLERY_API_KEYPSGALLERY_API_KEYTechnical decisions
Credential contract: Use
PSGALLERY_API_KEYfor the workflow secret, publishing action input, and action environment variable. This name is explicit about both its service and purpose.PowerShell command interface: The underlying
Publish-PSResourcecmdlet keeps its-ApiKeyparameter because that is the cmdlet's public PowerShell interface. The value passed to it is held in the action's$psGalleryApiKeyvariable.Workflow scope: Publish-Module forwards
PSGALLERY_API_KEYdirectly to Publish-PSModule. No translation is needed at any GitHub Actions boundary.Documentation: Setup, caller, workflow-reference, design, and action documentation name only
PSGALLERY_API_KEYas the required publishing credential.Implementation plan
Credential contract
PSGALLERY_API_KEYin the root reusable workflow and Publish-Module workflowPSGALLERY_API_KEY$psGalleryApiKeyDocumentation and validation
PSGALLERY_API_KEYImplementation is delivered by PR #408.