Skip to content

Pin GitHub Actions to commit SHAs and harden CI workflows#523

Merged
oxisto merged 1 commit into
mainfrom
mf/ci-hardening
Jul 4, 2026
Merged

Pin GitHub Actions to commit SHAs and harden CI workflows#523
oxisto merged 1 commit into
mainfrom
mf/ci-hardening

Conversation

@mfridman

@mfridman mfridman commented Jul 1, 2026

Copy link
Copy Markdown
Member

This PR pins all GitHub Actions to commit SHAs and does some light hardening of the CI workflows.

  • pins every action to a SHA, keeping the # vX.Y.Z comments so Dependabot can still bump them
  • adds permissions: contents: read to the build and lint workflows (spell-check and CodeQL already scoped theirs)
  • sets persist-credentials: false on every checkout, since none of the workflows push
  • pins golangci-lint to a fixed version instead of latest, so an upstream release can't break CI unexpectedly
  • adds PR-scoped concurrency to build and lint to cancel superseded runs
  • bumps typos from v1.46.0 to v1.48.0

All actions are on their latest major version.

@mfridman mfridman requested a review from oxisto as a code owner July 1, 2026 13:45
@oxisto oxisto merged commit 0c0d487 into main Jul 4, 2026
11 checks passed
@oxisto oxisto deleted the mf/ci-hardening branch July 4, 2026 11:13
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