🩹 [Patch]: Actions are internalized and automatically follow the workflow version#385
Merged
Marius Storhaug (MariusStorhaug) merged 8 commits intoJul 16, 2026
Conversation
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
Marius Storhaug (MariusStorhaug)
marked this pull request as draft
July 15, 2026 01:04
- Update action.yml files to improve readability and maintainability by adding comments and adjusting paths. - Simplify Get-GitHubPullRequest function by removing IsOpen property and related logic. - Enhance Resolve-ReleaseDecision function to streamline prerelease handling and version bump logic. - Modify test data and cases to reflect changes in logic and improve clarity. - Remove outdated DEPENDENCIES.md file to declutter the repository. - Add jscpd configuration for code duplication checks. - Update PSScriptAnalyzer configuration to exclude specific rules.
Marius Storhaug (MariusStorhaug)
marked this pull request as ready for review
July 16, 2026 16:45
Marius Storhaug (MariusStorhaug)
deleted the
feat/internalize-process-actions
branch
July 16, 2026 17:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When you reference Process-PSModule at a release tag, run it from a branch during development, or test it from a fork, the actions it calls now automatically match that same version. There's no more keeping a workflow and its actions in sync by hand — pin the workflow, and the actions follow.
New: Actions automatically follow the workflow version in use
Every stage workflow now checks out its own source at the exact commit it is running from, then calls its actions from that local copy instead of a separately pinned action reference. In practice this means:
This is possible using
job.workflow_repositoryandjob.workflow_sha, a set of GitHub Actions context properties that let a reusable workflow discover its own source repository and commit. This capability did not exist before — it was introduced by GitHub in April 2026 (shipped in Actions Runner v2.334.0, see actions/runner#4335) and is documented in thejobcontext reference. No official GitHub changelog announcement could be found for this change — the runner release and context documentation are the primary references.GitHub-Script,Invoke-Pester, andInvoke-ScriptAnalyzercontinue to be consumed from their own repositories at pinned commits, as before.No changes are required to consumer workflows. Inputs, outputs, and secrets are unchanged.
Changed: Internalized actions have moved out of their standalone repositories
Build-PSModule,Document-PSModule,Get-PSModuleSettings,Get-PesterCodeCoverage,Get-PesterTestResults,Initialize-PSModule,Install-PSModuleHelpers,Publish-PSModule,Resolve-PSModuleVersion, andTest-PSModulenow ship directly inside Process-PSModule instead of living in their own PSModule repositories.Those standalone repositories are now archived and will be deleted soon. If you reference any of them directly, switch to Process-PSModule instead. The old actions will also be the ones older versions of Process-PSModule will use, so be sure to update to be able to use the framework.
Technical Details
.github/actions/:Build-PSModule,Document-PSModule,Get-PSModuleSettings,Get-PesterCodeCoverage,Get-PesterTestResults,Initialize-PSModule,Install-PSModuleHelpers,Publish-PSModule,Resolve-PSModuleVersion,Test-PSModule.repository: ${{ job.workflow_repository }},ref: ${{ job.workflow_sha }},path: _wf.PSModule/<Name>@<sha>to./_wf/.github/actions/<Name>.Install-PSModuleHelpersresolve from the same bundled revision..github/actionlint.yamlis updated to recognize the self-checkout pattern and thejob.workflow_*properties.Validation
feat/internalize-process-actionsto the invoked workflow commit.