Skip to content

Pin GitHub Actions to SHAs in release workflow [SRE-1802] - #1

Merged
tylergohl merged 1 commit into
mainfrom
sre-1802-pin-actions-to-shas
Jun 30, 2026
Merged

Pin GitHub Actions to SHAs in release workflow [SRE-1802]#1
tylergohl merged 1 commit into
mainfrom
sre-1802-pin-actions-to-shas

Conversation

@tylergohl

Copy link
Copy Markdown

Summary

Supply chain hardening — pin external GitHub Actions in .github/workflows/release.yml to immutable commit SHAs. Part of SRE-1802 (org-wide action pinning).

Also fixes actions/checkout@latest which is not a valid tag (latest refs are v6, v5, etc.) — bumped to v6 and pinned.

Changes

Action Before After
actions/checkout @latest (invalid) @de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
actions/setup-go @v5 @40f1582b2485089dde7abd97c1529aa768e1baff # v5
goreleaser/goreleaser-action @v6 @e435ccd777264be153ace6237001ef4d979d3a7a # v6

Test plan

  • Workflow only fires on tag push — no PR-time validation possible
  • Next tagged release will exercise the pinned actions

Copilot AI review requested due to automatic review settings May 20, 2026 21:06

Copilot AI left a comment

Copy link
Copy Markdown

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 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/checkout to a specific commit SHA (and effectively bump to v6).
  • Pin actions/setup-go v5 to a specific commit SHA.
  • Pin goreleaser/goreleaser-action v6 to a specific commit SHA.

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

@tylergohl
tylergohl marked this pull request as ready for review June 30, 2026 00:07
@tylergohl
tylergohl merged commit 2eaf9fe into main Jun 30, 2026
1 check passed
@tylergohl
tylergohl deleted the sre-1802-pin-actions-to-shas branch June 30, 2026 00:08
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