Skip to content

No-op - Pinning github actions to commit SHAs - #52

Merged
lopert merged 1 commit into
Shopify:mainfrom
kyli:kaiyi-pin-shas
Apr 27, 2026
Merged

lopert merged 1 commit into
Shopify:mainfrom
kyli:kaiyi-pin-shas

Conversation

@kyli

@kyli kyli commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Why?

By using some-org/some-action@v3 you are trusting a mutable tag. If the upstream repo is compromised, a force-pushed v3 ships malicious code into your workflow on the next run — see tj-actions/changed-files (March 2025) for recent real-world cases that leaked secrets across thousands of downstream workflows.

Pinning to a full 40-char SHA (uses: tj-actions/changed-files@<sha> # v45.0.3) makes the reference immutable and helps to mitigate this type of supply chain attacks.

cc @saga-dasgupta @lopert for review.

@lopert
lopert merged commit e48e3d8 into Shopify:main Apr 27, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants