Skip to content

chore(ci): pin GitHub Actions to full commit SHA#240

Open
vlakoff wants to merge 1 commit into
Bacon:mainfrom
vlakoff:chore/pin-github-actions-sha
Open

chore(ci): pin GitHub Actions to full commit SHA#240
vlakoff wants to merge 1 commit into
Bacon:mainfrom
vlakoff:chore/pin-github-actions-sha

Conversation

@vlakoff
Copy link
Copy Markdown
Contributor

@vlakoff vlakoff commented May 22, 2026

This PR hardens the CI workflows against supply-chain attacks by pinning every GitHub Actions dependency to its full commit SHA, while keeping the human-readable version tag as an inline comment.

How the change was made

Generated programmatically with pin-github-action — no tedious manual SHA look-ups.

Merge order

⚠️ Please merge after #239.

#239 introduces Dependabot configuration that almost fully automates GitHub Actions updates. Once it lands, Dependabot will keep the pinned SHAs — and their inline version comments — current automatically, no need to retrieve hashes by hand when an action releases a new version.

Why SHA pinning?

Floating tags like @v6 can be silently moved to a different (potentially malicious) commit. Pinning to a SHA guarantees the exact code that runs in CI is the code that was reviewed. This is recommended by OpenSSF Scorecard and GitHub's secure use reference.

Switch all GitHub Actions dependencies from floating version tags
to pinned commit SHAs, a recommended security practice to protect
against supply-chain attacks.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.72%. Comparing base (4da2233) to head (da9a87e).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #240   +/-   ##
=========================================
  Coverage     71.72%   71.72%           
  Complexity      999      999           
=========================================
  Files            49       49           
  Lines          3158     3158           
=========================================
  Hits           2265     2265           
  Misses          893      893           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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