Ready prompts
Programming

GitHub Actions previews workflow dependency lockfiles

· KGAM.Blog

On October 14, 2026, GitHub opened a public preview of Actions lockfiles for GitHub Enterprise Cloud. The .github/workflows/actions.lock file pins actions, transitive dependencies and reusable workflows to specific commits.

A handy generator of ready-to-use prompts
Illustration · KGAM.Blog
Illustration

The gh actions-lock extension creates the file while keeping readable tag references in workflows. Dependabot can update matching entries alongside dependency changes. Adoption can be gradual, with an organization policy available to require lockfiles.

Illustration · KGAM.Blog
Illustration

The benefit is reproducibility: a build uses a fixed dependency set. A lockfile does not make a questionable action safe, however. Review the code being executed and the permissions it receives before pinning it.