GitHub Actions lockfile feature becomes generally available
GitHub made the Actions workflow dependency lockfile generally available on 28 October 2026, two weeks after it entered public preview. Workflows can still reference readable tags or branches such as actions/checkout@v4, but the runner executes the commit recorded in .github/workflows/actions.lock, so a tag later repointed elsewhere has no effect. The lockfile records commit hashes for both direct and transitive dependencies (dependencies inside composite Actions), addressing the poor readability of manual SHA pinning and the difficulty of controlling transitive dependencies. The companion tool is the gh actions-lock extension for GitHub CLI, which generates and maintains the lockfile and offers a check-only verification mode usable as a CI gate; when Dependabot opens a version update it updates the lockfile entry too, with both changes in the same pull request. Enterprise, organisation and repository administrators can turn on a "Require lockfile" enforcement policy, and it is available on Free, Team and Enterprise Cloud (including data residency). GitHub states explicitly that the lockfile only guarantees the commits you locked are executed, not that those commits are themselves safe, so review is still needed before locking.
Writing @v4 or a branch name in Actions points at content that can change at any time, so an attacker who tampers with an Action can inject code into the pipeline without touching your repository. Pinning a full commit SHA manually prevents this, but it is hard to read and does not cover the transitive dependencies of composite Actions.
Adoption does not require converting the whole organisation at once: start by adding lockfiles to high-privilege workflows such as release and deployment, add staleness checks in CI, confirm that Dependabot update pull requests go through the existing review process, and then turn on the enterprise-level enforcement policy. Note that if a team has auto-merge enabled for Dependabot updates, a malicious change would be written straight into the lockfile and the review checkpoint would be meaningless.