chore: Pin haskell-actions/setup to full commit SHA#19
Merged
Conversation
Pin third-party GitHub Action to a full commit SHA for improved supply chain security. ## Changes - Replace `haskell-actions/setup@v2` with `haskell-actions/setup@ec49483bfc012387b227434aba37f03a6e8ba9ed` - Add version comment (`# v2`) to maintain visibility of the intended version ## Why Pinning to a full commit SHA is the only way to use a GitHub Action as an immutable release. Version tags like `v2` can be moved by repository maintainers, potentially introducing malicious code. A full SHA pin ensures the exact same code runs on every workflow execution, mitigating supply chain attacks since an attacker would need to generate a SHA-1 collision for a valid Git object payload. ## Semgrep Finding Details An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload. @pkaeding@launchdarkly.com requested Semgrep Assistant generate this pull request to fix [a finding](https://semgrep.dev/orgs/launchdarkly/findings/726904704).
keelerm84
reviewed
Mar 20, 2026
keelerm84
approved these changes
Mar 23, 2026
pkaeding
approved these changes
Mar 27, 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.
Pin third-party GitHub Action to a full commit SHA for improved supply chain security.
Changes
haskell-actions/setup@v2withhaskell-actions/setup@ec49483bfc012387b227434aba37f03a6e8ba9ed# v2) to maintain visibility of the intended versionWhy
Pinning to a full commit SHA is the only way to use a GitHub Action as an immutable release. Version tags like
v2can be moved by repository maintainers, potentially introducing malicious code. A full SHA pin ensures the exact same code runs on every workflow execution, mitigating supply chain attacks since an attacker would need to generate a SHA-1 collision for a valid Git object payload.Semgrep Finding Details
An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.
@pkaeding@launchdarkly.com requested Semgrep Assistant generate this pull request to fix a finding.