Skip to content

chore: pin GitHub Actions to commit SHAs#6

Merged
psd-coder merged 1 commit intomainfrom
pin-action-versions
Apr 6, 2026
Merged

chore: pin GitHub Actions to commit SHAs#6
psd-coder merged 1 commit intomainfrom
pin-action-versions

Conversation

@psd-coder
Copy link
Copy Markdown
Owner

Overview

Pins all GitHub Actions workflow dependencies to specific commit SHAs instead of mutable version tags.

Problem Statement

Using mutable version tags (e.g. actions/checkout@v6) in CI workflows is a supply chain security risk — a compromised or force-updated tag could silently execute different code. Pinning to commit SHAs ensures the exact code that was reviewed is always what runs.

Solution Approach

  • Replaced all @vX.Y.Z tag references with their corresponding commit SHAs across all workflow files and the shared prepare-runner composite action
  • Retained the original version tag as an inline comment for human readability

Breaking Changes

None.

@psd-coder psd-coder self-assigned this Apr 6, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 6, 2026

size-limit report 📦

Path Size
.size-check/index.mjs 2.35 KB (0%)
.size-check/render.mjs 410 B (0%)
.size-check/context.mjs 402 B (0%)

@psd-coder psd-coder merged commit 2c551a4 into main Apr 6, 2026
5 checks passed
@psd-coder psd-coder deleted the pin-action-versions branch April 6, 2026 21:21
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.

1 participant