chore(ci): pin GitHub Actions to commit SHAs for supply chain security#669
Draft
bhabalan wants to merge 1 commit intowebex:nextfrom
Draft
chore(ci): pin GitHub Actions to commit SHAs for supply chain security#669bhabalan wants to merge 1 commit intowebex:nextfrom
bhabalan wants to merge 1 commit intowebex:nextfrom
Conversation
Pin all GitHub Action references to immutable commit SHAs instead of mutable version tags. This prevents a class of supply chain attacks where an attacker force-pushes a tag to point at malicious code (as seen in the recent Trivy/TeamPCP incident, March 2026).
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
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.
COMPLETES N/A — proactive security hardening
This pull request addresses
The recent Trivy supply chain attack (March 2026, TeamPCP/DeadCatx3) demonstrated that mutable GitHub Action version tags can be force-pushed to point at malicious code. Any CI/CD pipeline referencing actions by tag (e.g.,
actions/checkout@v4) would silently execute the attacker's payload. While this repo was not directly affected (no Trivy usage), all three workflow files used mutable version tags for GitHub Actions, leaving them vulnerable to the same class of attack.by making the following changes
Pin all GitHub Action
uses:references to immutable commit SHAs across all three workflow files, with the version tag preserved as an inline comment for readability:pull-request.yml— pinnedactions/checkout@v3,actions/setup-node@v4,actions/cache@v4,actions/upload-artifact@v4deploy.yml— pinnedactions/checkout@v4,actions/setup-node@v4,actions/cache@v4,actions/cache/restore@v4,actions/cache/save@v4update-dependencies.yml— pinnedactions/checkout@v2Change Type
The following scenarios were tested
The GAI Coding Policy And Copyright Annotation Best Practices
Checklist before merging