Skip to content

Pin GitHub Actions to commit SHAs - #168

Merged
nachorpaez merged 2 commits into
mainfrom
SEC-4382/sha-pin-actions-uZBcmHokBCuN
Nov 12, 2026
Merged

nachorpaez merged 2 commits into
mainfrom
SEC-4382/sha-pin-actions-uZBcmHokBCuN

Conversation

@nachorpaez

Copy link
Copy Markdown
Contributor

Pins every GitHub Action referenced by a tag or branch in this repository's workflows to the full commit SHA that ref currently resolves to, so behavior is unchanged. The resolved version is kept as a trailing comment for readability and for Dependabot/Renovate updates.

This follows GitHub's recommendation to pin versions of actions to a full-length commit SHA.

File Action Previous ref Pinned SHA (version)
.github/workflows/bench.yml actions/checkout v3 a37ce9120846195fa4ece8f58b268e6043cb2f26 (v3.7.0)
.github/workflows/bench.yml actions/setup-go v5 40f1582b2485089dde7abd97c1529aa768e1baff (v5.6.0)
.github/workflows/bench.yml kenchan0130/actions-system-info v1.2.1 fa6e3c44fe5a4d62c5fd1fa589c8a1c898819f2b (v1.2.1)
.github/workflows/bench.yml actions/cache/restore v3 6f8efc29b200d32929f49075959781ed54ec270c (v3.5.0)
.github/workflows/bench.yml benchmark-action/github-action-benchmark v1 4322e5726e6334590d251fc4f92bec0efafc45dc (v1.22.2)
.github/workflows/bench.yml benchmark-action/github-action-benchmark v1 4322e5726e6334590d251fc4f92bec0efafc45dc (v1.22.2)
.github/workflows/go.yml actions/checkout v3 a37ce9120846195fa4ece8f58b268e6043cb2f26 (v3.7.0)
.github/workflows/go.yml actions/setup-go v3 be3c94b385c4f180051c996d336f57a34c397495 (v3.6.1)
.github/workflows/go.yml golangci/golangci-lint-action v3.3.1 0ad9a0988b3973e851ab0a07adf248ec2e100376 (v3.3.1)
.github/workflows/go.yml codecov/codecov-action v3.1.1 d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 (v3.1.1)
.github/workflows/main.yml actions/checkout v3 a37ce9120846195fa4ece8f58b268e6043cb2f26 (v3.7.0)
.github/workflows/main.yml actions/setup-go v5 40f1582b2485089dde7abd97c1529aa768e1baff (v5.6.0)
.github/workflows/main.yml benchmark-action/github-action-benchmark v1 4322e5726e6334590d251fc4f92bec0efafc45dc (v1.22.2)
.github/workflows/main.yml kenchan0130/actions-system-info v1.2.1 fa6e3c44fe5a4d62c5fd1fa589c8a1c898819f2b (v1.2.1)
.github/workflows/main.yml actions/cache/save v3 6f8efc29b200d32929f49075959781ed54ec270c (v3.5.0)

Created by a Sourcegraph agentic batch change.

@nachorpaez
nachorpaez requested a review from a team November 11, 2026 11:01
golangci-lint-action v3 can only install golangci-lint v1, and the last v1
release can't read export data from the Go version that 'stable' now installs.
v9 of the action installs golangci-lint v2; .golangci.yml was converted with
'golangci-lint migrate' (gosimple is part of staticcheck and typecheck is
always on in v2).

Amp-Thread-ID: https://ampcode.com/threads/T-01a1cf27-70ef-74c8-9602-faaa0a076243
Co-authored-by: Amp <amp@ampcode.com>
@nachorpaez
nachorpaez merged commit ace0614 into main Nov 12, 2026
4 checks passed
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.

2 participants