Oriel — AI & technology worth noticing, every day.

Lock Your GitHub Actions

Web page · https://hugovk.dev/blog/2026/lock-github-actions

First seen by Oriel on .

AI summary

GitHub Actions workflow lockfiles let workflows use readable version tags while securely resolving actions to immutable commits recorded in a generated lockfile.

  • Install the gh-actions-lock extension with `gh extension install github/gh-actions-lock`, then run `gh actions-lock` to rewrite SHA-pinned workflows and generate `.github/workflows/actions.lock`.
  • The lockfile records each action’s tag, commit SHA, owner ID, and repository ID; modified workflows and the generated file should be committed together.
  • Renovate and Dependabot already support these lockfiles and update them during periodic dependency updates.
  • GitHub recommends running `gh actions-lock --verify` in CI; the example uses an independent `ubuntu-slim` job and pins the extension to v0.4.1.
  • zizmor supports workflow lockfiles from v1.32.0; earlier versions continue recommending direct action hash pins.

#github actions #supply chain security #dependabot #zizmor

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 326, latest observation ; +322 over observed period since
  • Lobsters: 30, latest observation ; +28 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 64, latest observation ; +64 over observed period since
  • Lobsters: 7, latest observation ; +7 over observed period since

Aliases

SourceExternal IDURL
Hacker News50459485https://hugovk.dev/blog/2026/lock-github-actions/ Read discussion
Lobstersv3uidxhttps://hugovk.dev/blog/2026/lock-github-actions/ Read discussion