Lock Your GitHub Actions(hugovk.dev)
328 points by gslin 18 days ago | 64 comments
tl;dr: GitHub Actions now supports workflow lockfiles via the `gh actions-lock` CLI extension, letting you reference actions by readable tags (e.g., `actions/checkout@v7.0.1`) while a separate `actions.lock` file pins the verified commit SHAs. Renovate, Dependabot, and zizmor (v1.32.0+) already support the format, and GitHub provides a `--verify` command to validate lockfiles in CI.
HN Discussion:
  • ~Lockfiles are helpful but have gaps like reusable workflows and composite actions not being fully locked
  • ↓Prefer existing alternative tools like pinact or actions-up over this new approach
  • ~Lockfiles still don't solve trust issues; GitHub should enforce immutable tags at the platform level
  • ↓Avoid third-party GitHub Actions entirely by inlining scripts or using only vendor actions
  • •Questioning whether this offers meaningful benefit over simply pinning commit SHAs