Context and Request
The PSGallery publish secret is currently named APIKEY across the PSModule organization. This name is ambiguous — it gives no indication of what system the key belongs to.
Renaming it to PSGALLERY_API_KEY makes the secret self-describing, consistent with common naming conventions for organization secrets, and easier to audit.
Acceptance criteria
Technical Decisions
Rename approach — Remove the old secret and create the new one with the same value, or rename in-place if the GitHub UI/API supports it. The old name must not remain active once the new name is in use to avoid confusion.
Rollout order — Update the secret in the organization first, then update the workflow reference in the same PR to avoid a window where the workflow references a non-existent secret.
Implementation Plan
Context and Request
The PSGallery publish secret is currently named
APIKEYacross the PSModule organization. This name is ambiguous — it gives no indication of what system the key belongs to.Renaming it to
PSGALLERY_API_KEYmakes the secret self-describing, consistent with common naming conventions for organization secrets, and easier to audit.Acceptance criteria
APIKEYtoPSGALLERY_API_KEY.Process-PSModuleworkflow referencesPSGALLERY_API_KEYinstead ofAPIKEY.Technical Decisions
Rename approach — Remove the old secret and create the new one with the same value, or rename in-place if the GitHub UI/API supports it. The old name must not remain active once the new name is in use to avoid confusion.
Rollout order — Update the secret in the organization first, then update the workflow reference in the same PR to avoid a window where the workflow references a non-existent secret.
Implementation Plan
APIKEYtoPSGALLERY_API_KEYin the PSModule GitHub organization settings.Process-PSModuleworkflow (publishstep or equivalent) to referencesecrets.PSGALLERY_API_KEYinstead ofsecrets.APIKEY.APIKEYand update them.APIKEYsecret name.