Skip to content

Pin GitHub Actions to commit SHAs - #160

Merged
mrecachinas merged 3 commits into
masterfrom
pinner/actions-sha-pins-2026-09-10
Oct 6, 2026
Merged

mrecachinas merged 3 commits into
masterfrom
pinner/actions-sha-pins-2026-09-10

Conversation

@github-security-bot

@github-security-bot github-security-bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Pins external GitHub Actions to immutable commit SHAs and restores compatibility of the existing Go test matrix with current hosted runners.

Changes

  • Preserves all existing Action SHA pins and version comments.
  • Includes the previously missed multiline actions/setup-go@v4 reference in the release workflow.
  • Maps the macOS test leg to macos-15 instead of the moving macos-latest image. The current macOS 26 image is incompatible with the project's existing Go 1.21.3 linker (LC_UUID). Go versions, macOS coverage, check names, Linux/Windows runners, and race tests are preserved.
  • Adds weekly Dependabot updates for GitHub Actions with a seven-day cooldown.

Default-versus-PR comparison

The latest matching default-branch Test run passed on January 16, 2026. Its logs have expired, so that historical success is not claimed as proof of compatibility with today's runner image. Current tag targets match the PR's Action pins; fresh PR failures identify the Go/macOS image mismatch rather than an invalid SHA.

Verification

Both the PR and push Test workflows passed on 417658d7e6a6a0bb7e13967584da1dca693a3fd8, including the macOS leg. Latest CI checks completed successfully. No tests were removed or weakened, and no Action was unpinned. Human review remains required.

Copilot AI balanced review requested due to automatic review settings September 10, 2026 21:27
@github-security-bot
github-security-bot requested a review from a team as a code owner September 10, 2026 21:27

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.

🟡 Changes recommended

The release workflow retains an unpinned mutable action reference.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Pins GitHub Actions dependencies to immutable SHAs and configures automated weekly updates.

Changes:

  • Pins six action references to commit SHAs.
  • Adds a seven-day Dependabot cooldown.
  • One multiline actions/setup-go@v4 reference remains unpinned.
File summaries
File Description
.github/workflows/test.yml Pins test actions.
.github/workflows/release.yml Pins two release actions.
.github/workflows/lint.yml Pins lint actions.
.github/dependabot.yml Enables weekly action updates.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/release.yml
mrecachinas and others added 2 commits October 5, 2026 20:50
Pin the omitted actions/setup-go v4 reference to its resolved commit without changing the Go toolchain or release behavior.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use the supported macos-15 image for the macOS leg while retaining its existing check name. macOS 26 dyld rejects Go 1.21.3 internal-linker binaries without LC_UUID; preserve the established Go toolchain instead of bumping it. Keep Linux/Windows runners, all SHA pins, build steps, race tests, timeouts, and matrix coverage unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mrecachinas
mrecachinas merged commit 56a6df5 into master Oct 6, 2026
10 checks passed
@mrecachinas
mrecachinas deleted the pinner/actions-sha-pins-2026-09-10 branch October 6, 2026 02:49
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.

3 participants