GitHub ships gh-actions-lock to pin every Actions dependency to an exact commit

DanielLockyer · x · 2026-11-12

Amid ongoing supply-chain security incidents, the author recommends locking GitHub Actions workflows with GitHub's official CLI extension gh-actions-lock. It generates and verifies a dependency lockfile, pinning every action your workflows use to an exact commit — protecting against tag hijacking and upstream tampering.

Usage is two steps: gh extension install github/gh-actions-lock, then run gh actions-lock. MIT-licensed, 353 stars.

Related event: GitHub Releases gh-actions-lock to Pin Actions Dependencies(2 posts)→

Original post →

More from coding & agent

coding & agent channel →