Skip to content

ci: pin actions to commit SHAs and update deprecated versions - #167

Merged
chroju merged 2 commits into
mainfrom
ci/pin-actions
Jul 7, 2026
Merged

ci: pin actions to commit SHAs and update deprecated versions#167
chroju merged 2 commits into
mainfrom
ci/pin-actions

Conversation

@chroju

@chroju chroju commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Modernizes both GitHub Actions workflows: every action is now pinned to a full commit SHA (with a version comment) instead of a mutable tag or branch, and deprecated action versions / runners are updated.

Action updates

  • actions/checkout@master -> de0fac2e (v6.0.2)
  • actions/setup-go@v2 -> 4a360112 (v6.4.0), switched to go-version-file: go.mod so the Go version tracks the module file
  • shogo82148/actions-goveralls@v1 -> 9606dbc5 (v1.11.0)
  • goreleaser/goreleaser-action@v2 -> e24998b8 (v7.1.0), with version: '~> v1' because .goreleaser.yml still uses goreleaser v1 syntax (brews[].tap); the config migration is intentionally out of scope for this PR

Other changes

  • Added least-privilege permissions blocks: contents: read for the test workflow, contents: write for the release workflow
  • Replaced retired ubuntu-20.04 runners with ubuntu-latest

No dependency or goreleaser config changes; existing secrets and env usage are untouched.

🤖 Generated with Claude Code

chroju and others added 2 commits July 7, 2026 22:42
- Pin all actions to full commit SHAs with version comments
- actions/checkout@master -> v6.0.2, actions/setup-go@v2 -> v6.4.0
- shogo82148/actions-goveralls@v1 -> v1.11.0
- goreleaser/goreleaser-action@v2 -> v7.1.0 with `version: '~> v1'`
  to keep the existing goreleaser v1 config working
- Use go-version-file: go.mod instead of hardcoded Go versions
- Add explicit least-privilege permissions to both workflows
- Replace retired ubuntu-20.04 runners with ubuntu-latest

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
GOPATH-mode go get fails because current goveralls source requires
Go 1.21+ stdlib packages. The actions-goveralls action bundles its
own binary, so the step is redundant.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chroju
chroju merged commit 18d61f8 into main Jul 7, 2026
1 check passed
@chroju
chroju deleted the ci/pin-actions branch July 7, 2026 14:20
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.

1 participant