You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pin Process-PSModule workflow reference to SHA with patch-level version comment #574
All step-level uses: references in the PSModule workflow infrastructure follow a pinned-SHA pattern with the
version tag in a trailing comment, for example:
This pattern is a GitHub-recommended security best practice
that prevents tag-mutation attacks while preserving version readability. Tools like Dependabot
and Renovate can automatically update the SHA and comment when new versions are
released.
Request
The reusable workflow reference in Process-PSModule.yml currently uses a major version tag:
This is inconsistent with the SHA-pinned pattern used everywhere else in the infrastructure. A mutable tag like @v5 can be force-pushed to point at any commit, meaning the consumed workflow could silently change between runs
without any visible change in the consumer repository.
What is expected
The reference should be pinned to the commit SHA of the current release, with the patch-level version tag in a
comment:
This applies to all repositories that consume Process-PSModule, not just the GitHub module.
Acceptance criteria
The uses: reference for Process-PSModule is pinned to a full commit SHA
The patch-level version tag appears in a trailing comment (e.g., # v5.4.5)
Dependabot or Renovate configuration covers this reference for automated updates
The pattern is consistent with all other uses: references in the infrastructure
Technical decisions
Scope: This issue covers the PSModule/GitHub repository specifically. Other consumer repositories should be
updated in their own PRs or via the Distributor sync mechanism.
SHA to pin:4343d76f9e8c9468527175ea292092c2d055be8c (current v5.4.5). This will be updated once PR #308 is merged and released, so the implementer should
use the latest tag at the time of implementation.
Dependabot compatibility: Dependabot supports SHA-pinned reusable workflow references
and can update them automatically. The existing dependabot.yml in the repository should already cover this if
the github-actions ecosystem is configured.
Implementation plan
Update uses: in .github/workflows/Process-PSModule.yml to SHA-pinned format with patch tag comment
Verify Dependabot configuration covers reusable workflow references for automated updates
Activity
⚙️ [Maintenance]: Workflow reference pinned to immutable SHA (#575)