Logic Foundry

Build with understanding.

GitHub Actions lockfiles are generally available: what they pin and what they don’t

Originally reported November 14, 2026.

GitHub made workflow dependency lockfiles generally available on October 28, 2026, roughly two weeks after public preview. The feature lets a GitHub Actions workflow retain readable references such as actions/checkout@v4 while the runner executes the commits recorded in .github/workflows/actions.lock. A later change to a referenced tag or branch will not change which recorded commit runs. The feature is available on GitHub Enterprise Cloud, including its data-residency offering, as well as Team and Free plans.

The lockfile records commits for both direct Actions dependencies and transitive dependencies, such as those used by composite Actions. That addresses a limitation of manually pinning references to full commit SHAs in workflow files: manual pins reduce readability and do not cover those transitive dependencies.

GitHub provides the gh actions-lock GitHub CLI extension to generate and maintain the file. Once a workflow is enrolled, all its dependencies need lockfile entries. Teams can enroll workflows incrementally, and the extension’s validation mode checks for stale entries without changing files, making it suitable for a CI check.

When Dependabot proposes an Action version update for an enrolled workflow, GitHub says it updates the corresponding lockfile entry in the same pull request, without additional configuration. Administrators can also apply a Require lockfile policy at the repository, organization or enterprise level.

A lockfile pins a commit; it does not establish that the commit is safe. GitHub recommends reviewing dependencies before locking them. The same review matters for Dependabot updates: automatically merging an update would also accept its new locked commit. A measured rollout would start with a few high-privilege workflows, such as release or deployment pipelines, add a stale-lockfile CI check, and verify the update-review process before requiring lockfiles more broadly.

The report also notes a separate GitHub announcement from November 2: pull_request_target was set to be blocked by default starting December 2, 2026, to limit untrusted code entering privileged workflow contexts.