Pin all third-party GitHub Actions to immutable commit SHAs - #903
Merged
Conversation
Co-authored-by: raphael-theriault-swi <113933910+raphael-theriault-swi@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
raphael-theriault-swi
August 18, 2026 19:39
View session
raphael-theriault-swi
marked this pull request as ready for review
August 18, 2026 20:54
Contributor
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions security posture by replacing mutable tag-based uses: references in workflows with immutable 40-character commit SHAs, while preserving local reusable workflow references.
Changes:
- Pinned third-party actions in workflow steps from
@v*tags to full commit SHAs with a trailing# <tag>comment. - Updated Docker, AWS credentials, Nx, and CodeQL action references to SHA-pinned forms.
- Left local reusable workflow invocations (
uses: ./.github/workflows/*.yml) unchanged.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/testing.yml | Pins checkout/setup-node/pnpm action refs to commit SHAs. |
| .github/workflows/scan.yml | Pins checkout/setup-node/pnpm action refs to commit SHAs. |
| .github/workflows/release.yml | Pins publish/draft job action refs to commit SHAs; keeps local reusable workflows. |
| .github/workflows/lambda.yml | Pins checkout/setup-node/pnpm + artifact + AWS credentials actions to commit SHAs. |
| .github/workflows/images.yml | Pins Docker-related actions and checkout to commit SHAs. |
| .github/workflows/codeql.yml | Pins checkout/setup-node/pnpm and CodeQL init/analyze actions to commit SHAs. |
| .github/workflows/checks.yml | Pins actions across checks/versions/linux/windows/supports jobs to commit SHAs. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
tammy-baylis-swi
approved these changes
Aug 18, 2026
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.
This updates all GitHub Actions workflows to replace tag-based third-party
uses:references with full commit SHAs. Each pinned action now includes a trailing comment containing only the exact source tag.Scope
.github/workflowsthat reference external actions../.github/workflows/*.yml) unchanged.Pinning changes
@v*action refs with 40-character commit SHAs for:actions/*(checkout,setup-node,upload-artifact,download-artifact)pnpm/action-setupnrwl/nx-set-shasaws-actions/configure-aws-credentialsgithub/codeql-action(init,analyze)docker/*(setup-qemu-action,setup-buildx-action,login-action,build-push-action)# <tag>.Result