A workflow can remain unchanged in your repository and still execute different code tomorrow. A referenced action tag only has to move. On October 14, GitHub announced a public preview of workflow lockfiles, making those dependencies easier to identify and control.

The aim is not to make an entire CI environment immutable. It is to establish which dependency revisions you accept, then make subsequent changes reviewable.

Readable references with precise execution

According to the official announcement, the gh actions-lock extension generates .github/workflows/actions.lock. It records commits for actions, their transitive dependencies and relevant reusable workflows. Teams can adopt it one workflow at a time.

An onboarded workflow needs lockfile entries for its dependencies. References remain readable in YAML while execution uses the recorded commits. Dependabot can update the associated entry when it proposes an action version update.

The first lock is still a trust decision

Our assessment: the main benefit is moving an otherwise silent dependency change into something people can review. A locked revision is not a verdict on whether its code is trustworthy, maintained or appropriate for your organisation.

Before accepting the initial resolution, ask who maintains the action, why it needs its permissions and whether it must access secrets. Perfect repeatability can reproduce a poor choice just as reliably as a good one.

Review effort should follow risk. An action that publishes an image or signs a package deserves more scrutiny than an unprivileged formatting step, even when both appear in the same generated file.

Test the complete maintenance cycle

We suggest starting with a representative workflow in a non-critical repository. Exercise an ordinary run, a dependency update and a missing-entry failure. The team should recognise each situation without bypassing the control merely to turn the pipeline green.

Also decide who approves lockfile changes. Generated configuration remains configuration worth reviewing. Easy regeneration should not make approval automatic, particularly on release workflows.

Keep a short record of the reason for introducing the mechanism and who owns its maintenance. A control people understand is easier to preserve during a busy incident or an urgent delivery.

Locking does not replace isolation

This mechanism is not a substitute for minimal job permissions, runner isolation or a publication policy. Ask what a dependency could still reach if that exact locked revision were compromised.

Our article on ARC runner reliability covers the infrastructure side. Available runners and predictable dependency revisions solve different problems. Reliable CI needs both, along with an update process that engineers will actually follow.

Cover image: generated illustration, not an official GitHub screenshot.