Use commit SHA with version comments for all workflow action references#239
Merged
MariusStorhaug merged 2 commits intomainfrom Nov 26, 2025
Merged
Conversation
…comments Co-authored-by: MariusStorhaug <17722253+MariusStorhaug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Standardize GitHub Actions to use commit SHA with version comments
Use commit SHA with version comments for all workflow action references
Nov 26, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR standardizes all GitHub Actions workflow references to use commit SHAs with specific version comments, improving security and build reproducibility. The changes replace tag-based references (e.g., @v6) with SHA-based references that include version comments (e.g., @1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0).
Key Changes:
- All 13 workflow files updated to use SHA-based action references
- Version comments now specify exact semantic versions (e.g., v6.0.0, v1.7.4) instead of major versions only
- Consistent format applied across all actions from both GitHub (actions/*) and PSModule namespaces
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/Auto-Release.yml |
Updated actions/checkout and PSModule/Auto-Release to use SHA with specific versions (v6.0.0, v1.9.5) |
.github/workflows/Build-Docs.yml |
Updated actions/checkout, actions/download-artifact, actions/upload-artifact, PSModule/Document-PSModule, and PSModule/GitHub-Script to SHA references with versions |
.github/workflows/Build-Module.yml |
Updated actions/checkout and PSModule/Build-PSModule to SHA references (v6.0.0, v4.0.9) |
.github/workflows/Build-Site.yml |
Updated actions/checkout, actions/download-artifact, actions/upload-pages-artifact, PSModule/Install-PSModuleHelpers, and PSModule/GitHub-Script to SHA references |
.github/workflows/Get-CodeCoverage.yml |
Updated PSModule/Get-PesterCodeCoverage to SHA reference (v1.0.3) |
.github/workflows/Get-Settings.yml |
Updated actions/checkout and PSModule/GitHub-Script to SHA references (v6.0.0, v1.7.4) |
.github/workflows/Get-TestResults.yml |
Updated PSModule/Get-PesterTestResults to SHA reference (v1.0.7) |
.github/workflows/Lint-SourceCode.yml |
Updated actions/checkout and PSModule/Invoke-ScriptAnalyzer to SHA references (v6.0.0, v4.1.1) |
.github/workflows/Linter.yml |
Updated actions/checkout to SHA reference (v6.0.0) |
.github/workflows/Test-Module.yml |
Updated actions/checkout, actions/download-artifact, PSModule/Test-PSModule, and PSModule/Invoke-ScriptAnalyzer to SHA references |
.github/workflows/Test-ModuleLocal.yml |
Updated actions/checkout, actions/download-artifact, PSModule/Install-PSModuleHelpers, and PSModule/Invoke-Pester to SHA references |
.github/workflows/Test-SourceCode.yml |
Updated actions/checkout and PSModule/Test-PSModule to SHA references (v6.0.0, v3.0.6) |
.github/workflows/workflow.yml |
Updated multiple actions including actions/checkout, actions/download-artifact, actions/configure-pages, actions/deploy-pages, PSModule/GitHub-Script, and PSModule/Publish-PSModule to SHA references |
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.
Standardize all GitHub Actions workflow references to use commit SHAs with version comments instead of mutable tags, ensuring deterministic builds and supply chain security.
Changes
actions/checkout,actions/download-artifact,actions/upload-artifact,actions/upload-pages-artifact,actions/configure-pages,actions/deploy-pagesto SHA referencesAuto-Release,Document-PSModule,GitHub-Script,Build-PSModule,Install-PSModuleHelpers,Get-PesterCodeCoverage,Get-PesterTestResults,Invoke-ScriptAnalyzer,Test-PSModule,Invoke-Pester,Publish-PSModule) to SHA references.github/workflows/Format
Dependabot supports SHA references for automated update PRs.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.