2026-11-26 15:47 UTC

GitHub previews Actions lockfiles to pin workflow dependencies

state: watchingheat: lowuncertainty: mediumrelevance: mediumgithub-actions lockfiles supply-chain-security ci-cdGitHubAndrew NesbittFrançois ProulxJesse HouwingWilliam Woodruff

What is this?

GitHub announced that workflow dependency lockfiles are in public preview for GitHub Enterprise Cloud, including its data-residency offering. The `gh actions-lock` CLI extension generates `.github/workflows/actions.lock`, recording commits for actions, their transitive dependencies, and reusable workflows; onboarded workflows use those recorded commits even if a referenced tag or branch moves. Administrators can also require lockfiles, and Dependabot can update lockfile entries with action-version updates. Locking guards against unexpected changes to references; it does not establish that a dependency is safe.

Why it matters

This is a practical CI/CD supply-chain security improvement: lockfiles make runs of onboarded GitHub Actions workflows use reviewed commits rather than silently following moved tags or branches. It is relevant to AI teams because their build and deployment pipelines may include agent-related workflows, but the announcement does not describe an AI-specific feature. The preview is limited to GitHub Enterprise Cloud, and locking a dependency does not verify that it is trustworthy.

Current assessment

GitHub announced workflow dependency lockfiles in public preview for GitHub Enterprise Cloud, including its data-residency offering. The `gh actions-lock` CLI extension generates `.github/workflows/actions.lock` with commits for actions, transitive dependencies, and reusable workflows; onboarded workflows require lockfile entries and run those recorded commits. Administrators can require lockfiles, and Dependabot can update entries alongside action-version updates. Lockfiles reduce risk from moved tags or branches but do not establish that a dependency is trustworthy. A November 8 HN post mentions an extension that generates and verifies the lockfile, but provides no linked artifact or details, so its availability and capabilities remain unverified. General availability and broader adoption are also unresolved.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1058h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

10-13 13:00⭐ origin echo-reconstructed"GitHub Actions workflow dependency lockfiles are now in public preview for GitHub Enterprise Cloud and GitHub Enterprise Cloud with data re
GitHub on blog (echo) · attributed from hn.story.50088044
—
10-14 14:09first on hacker news · published · +25.2hGitHub Actions has added lock files
bengotch
—
10-14 14:09amplified on hacker news 👑hn.story.50088044
bengotch
peak 41 · 2 comments · 98% of case engagement
11-07 20:03amplified on hacker newshn.story.50407548
kokada
peak 1 · 0 comments · 2% of case engagement
10-14 14:21our radar first saw it · +25.4hdiscovery anchor: hn.story.50088044—
pace: p63 vs 879 stories at the 720h mark (now 1058h old) — ahead of kuron-interactive-app-prototyping (1.0x), behind claude-code-desktop-preview-exfiltration (1.0x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnGitHub Actions has added lock files
Retrieved article excerpt

Open article · Retrieved 2026-10-14T15:37:49.313144+00:00

[Back to changelog](https://github.blog/changelog/)

Release

October 14, 2026 •
2 minute read

# GitHub Actions workflow lockfiles in public preview

GitHub Actions workflow dependency lockfiles are now in public preview for GitHub Enterprise Cloud and GitHub Enterprise Cloud with data residency. Tags and branches can move after you review a workflow, so a later run might execute different code. Lockfiles let you keep those references in your workflow while running the exact commits you locked.

If an action is compromised, a moved tag or branch can introduce malicious code into your workflow without a change to your repository. Lockfiles help protect against unexpected dependency changes by keeping workflow runs tied to the commits you locked. Locking does not determine whether the dependency itself is safe, so review dependencies before locking them.

Install the `gh actions-lock` extension for the GitHub CLI to create and maintain your workflow lockfile. With the extension, you can:

- **Pin your dependencies:** Generate `.github/workflows/actions.lock` with reviewable commits for actions and their transitive dependencies, as well as reusable workflow dependencies.
- **Adopt locking gradually:** Onboard workflows individually. Once onboarded, a workflow must have lockfile entries for its dependencies, and GitHub Actions runs the recorded commits.
- **Keep workflow runs consistent:** GitHub Actions requires each dependency of an onboarded workflow to be in the lockfile and uses its recorded commit, even if a tag or branch moves.
- **Check for stale lockfiles:** Verify that the lockfile is up to date without modifying files, including in a CI check.

The **Require lockfile** policy is also available in public preview. Enterprise, organization, and repository administrators can require workflows to use lockfiles across their enterprise, organization, or repository.

## [Keep locked dependencies up to date with Dependabot](https://github.blog/changelog/2026-10-14-github-actions-workflow-lockfiles-in-public-preview/#keep-locked-dependencies-up-to-date-with-dependabot)

Dependabot helps you keep your GitHub Actions dependencies up to date. When it opens a version update for an action in a workflow that is already onboarded, it also regenerates the matching lockfile entry in the same pull request, keeping the updated workflow reference and its locked commit in sync without additional configuration. Read more about [Dependabot updates for actions](https://docs.github.com/code-security/concepts/supply-chain-security/dependabot-version-updates#updates-for-actions).

## [Get started](https://github.blog/changelog/2026-10-14-github-actions-workflow-lockfiles-in-public-preview/#get-started)

To get started, install the extension from the [public gh-actions-lock repository](https://github.com/github/gh-actions-lock), then review and commit the generated lockfile and workflow changes.

For more details and links to setup instructions, see [workflow dependency lockfiles](https://docs.github.com/actions/concepts/security/workflow-dependency-lockfiles) in GitHub Docs.

Share feedback in the [existing community discussion](https://github.com/orgs/community/discussions/194494) or [open an issue in the gh-actions-lock repository](https://github.com/github/gh-actions-lock/issues).

Thank you to the community members who helped shape this preview through testing and feedback, with special thanks to Andrew Nesbitt, François Proulx, Jesse Houwing, and William Woodruff for their close collaboration and iteration on this solution over the past year.
bengotch412
🟧 echo.blog ⭐"GitHub Actions workflow dependency lockfiles are now in public preview for GitHub Enterprise Cloud and GitHub Enterprise Cloud with data reGitHub——
🟧 hnAn extension that generates and verifies the GH Actions dependency lockfilekokada10

Interpretation history

Decision trace