Pin GitHub Actions to SHAs in release workflow [SRE-1802] - #1
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the release pipeline by pinning third‑party GitHub Actions in the release workflow to immutable commit SHAs, reducing supply-chain risk and fixing an invalid actions/checkout@latest reference.
Changes:
- Pin
actions/checkoutto a specific commit SHA (and effectively bump to v6). - Pin
actions/setup-gov5 to a specific commit SHA. - Pin
goreleaser/goreleaser-actionv6 to a specific commit SHA.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Supply chain hardening — pin external GitHub Actions in
.github/workflows/release.ymlto immutable commit SHAs. Part of SRE-1802 (org-wide action pinning).Also fixes
actions/checkout@latestwhich is not a valid tag (latest refs arev6,v5, etc.) — bumped to v6 and pinned.Changes
actions/checkout@latest(invalid)@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6actions/setup-go@v5@40f1582b2485089dde7abd97c1529aa768e1baff # v5goreleaser/goreleaser-action@v6@e435ccd777264be153ace6237001ef4d979d3a7a # v6Test plan