Context
Identified during review of PR #18. The Process-PSModule.yml workflow uses secrets: inherit, which forwards all repository and organization secrets to the reusable PSModule/Process-PSModule workflow. A Copilot reviewer flagged this twice (comments r3215702505 and r3220268252) as a least-privilege concern: if the called workflow is ever compromised, every secret in the repository is exposed.
Technical Decisions
secrets: inherit is currently the standard pattern used by all PSModule module repositories when calling the shared Process-PSModule reusable workflow. The full set of secrets that Process-PSModule actually consumes (e.g., APIKEY for gallery publishing, any signing or deployment keys) is not documented at the call-site level. Switching to explicit secret mapping requires auditing PSModule/Process-PSModule to determine the minimum required secret set, then updating all module repositories that use the workflow.
Implementation Plan
Context
Identified during review of PR #18. The
Process-PSModule.ymlworkflow usessecrets: inherit, which forwards all repository and organization secrets to the reusablePSModule/Process-PSModuleworkflow. A Copilot reviewer flagged this twice (comments r3215702505 and r3220268252) as a least-privilege concern: if the called workflow is ever compromised, every secret in the repository is exposed.Technical Decisions
secrets: inheritis currently the standard pattern used by all PSModule module repositories when calling the sharedProcess-PSModulereusable workflow. The full set of secrets thatProcess-PSModuleactually consumes (e.g.,APIKEYfor gallery publishing, any signing or deployment keys) is not documented at the call-site level. Switching to explicit secret mapping requires auditingPSModule/Process-PSModuleto determine the minimum required secret set, then updating all module repositories that use the workflow.Implementation Plan
PSModule/Process-PSModule/.github/workflows/workflow.ymlto enumerate every secret the reusable workflow declares and uses.secrets: APIKEY: ${{ secrets.APIKEY }}, etc.) would cover all required operations without breaking builds or publish steps.secrets: inheritwith the explicit mapping in this repository'sProcess-PSModule.ymland validate CI passes.