Zhidaily AI · Intelligence · Daily
Zhidaily
Issue 16 · November 15, 2026 · Sun
Today's stories
9 stories · 9 companies
Home / November 15, 2026 / GitHub Actions lockfile feature becomes generally available
← Back
Release Safety · GitHub Score68

GitHub Actions lockfile feature becomes generally available

In brief
GitHub now records the commit hashes of Actions workflow dependencies in a lockfile, so a retagged action cannot change the code that actually runs. Release and deployment pipelines can start piloting it.
InfoQ China Claudio Masolo · RSS · infoq.cn
Nov 14 · 23:00 Read the original ↗
01Summary

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.

02Background

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.

03Impact

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.