Skip to content

Pin GitHub Actions to SHAs [SRE-1802]#62

Draft
tylergohl wants to merge 2 commits into
mainfrom
sre-1802-pin-actions-to-shas
Draft

Pin GitHub Actions to SHAs [SRE-1802]#62
tylergohl wants to merge 2 commits into
mainfrom
sre-1802-pin-actions-to-shas

Conversation

@tylergohl
Copy link
Copy Markdown

@tylergohl tylergohl commented May 21, 2026

Summary

Pin GitHub Actions references in this repo to immutable commit SHAs (with the original tag/branch preserved in a trailing comment). Part of SRE-1802 — org-wide supply-chain hardening.

Scope

This PR pins:

  • Internal ctrliq/* reusable workflow and action references
  • External actions not handled by clo-ciq's parallel Node 20 effort

No actions in this repo were claimed by clo-ciq's effort — this PR pins everything.

Files touched

  • .github/workflows/ci.yml
  • .github/workflows/release.yml

Test plan

  • Workflow runs succeed on this branch (or on next trigger after merge)
  • Once this and any companion clo-ciq PR merge, this repo has zero unpinned external/internal refs and sha_pinning_required can be enabled on it

Copilot AI review requested due to automatic review settings May 21, 2026 01:35
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the repo’s CI/release supply chain by replacing floating GitHub Actions version tags with immutable commit SHAs in the workflow definitions (SRE-1802 action pinning effort).

Changes:

  • Pin actions/setup-go and actions/checkout to specific commit SHAs in CI and release workflows.
  • Pin docker/setup-qemu-action to a specific commit SHA in the release workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/ci.yml Pins Go setup and checkout actions to immutable SHAs for PR CI runs.
.github/workflows/release.yml Pins Go setup, checkout, and QEMU setup actions to immutable SHAs for tag-based releases.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment on lines +10 to +13
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3
with:
go-version: '1.21'
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
Comment on lines +12 to +15
- uses: actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3
with:
go-version: '1.21'
- uses: actions/checkout@v3
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants