Pin GitHub Actions to SHAs [SRE-1802]#62
Draft
tylergohl wants to merge 2 commits into
Draft
Conversation
There was a problem hiding this comment.
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-goandactions/checkoutto specific commit SHAs in CI and release workflows. - Pin
docker/setup-qemu-actionto 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 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 |
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.
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:
ctrliq/*reusable workflow and action referencesNo actions in this repo were claimed by clo-ciq's effort — this PR pins everything.
Files touched
.github/workflows/ci.yml.github/workflows/release.ymlTest plan
sha_pinning_requiredcan be enabled on it