← Back to news
Coding Agents: Lock CI Dependencies Without Delegating Trust

Photo: Sebastiaan ter Burg / Wikimedia Commons — CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/); header may be cropped

01/11/2026

Coding Agents: Lock CI Dependencies Without Delegating Trust

A coding agent should not silently change what CI trusts

GitHub announced the general availability of GitHub Actions workflow dependency lockfiles on October 28, 2026. For teams using coding agents, this is more than a readability improvement. An assistant can propose a workflow with a familiar action name and a reassuring version tag, while the code eventually executed depends on what that reference points to. The useful boundary is straightforward: AI may prepare dependency changes, but humans must decide which code the delivery pipeline is allowed to trust.

The announcement says lockfiles are available on GitHub Enterprise Cloud, including data residency, Team, and Free plans. They preserve readable tag and branch references in workflow files while execution uses recorded commits. That separates the way engineers express intent from the exact implementation the runner executes. It does not remove the need to inspect the implementation, assess permissions, or understand the consequences of a dependency update.

What the new control actually changes

A workflow reference such as uses: octo-org/deploy-action@v3 names a moving target. A tag can be moved; a branch normally changes. Reviewing the workflow today therefore does not necessarily establish which action code will run next month. An upstream mistake or compromise can alter execution without a corresponding change to your own workflow. This is particularly uncomfortable when an agent has generated the configuration and the reviewer has focused mainly on whether the YAML looks plausible.

The lockfile, stored at .github/workflows/actions.lock, records the commits associated with dependency references. GitHub provides the gh actions-lock CLI extension to generate it. The documentation says this file should not be edited by hand. Workflows can be onboarded individually, allowing an incremental rollout rather than a repository-wide migration that nobody has time to review. For an onboarded workflow, every action dependency must be present, and the recorded commit is the one executed.

Repository identity matters too. The documentation describes owner and repository identifiers alongside each recorded reference and commit. These help GitHub check that the repository behind a name remains the one that was locked. The resulting artifact is therefore not merely a convenient list of version strings. It creates a reviewable record connecting a workflow dependency to both particular code and its source repository.

Deterministic execution is not a security verdict

GitHub explicitly warns that lockfiles protect against unexpected dependency changes but do not determine whether a dependency is safe. That distinction should be the headline in any agent adoption policy. Pinning malicious code faithfully still runs malicious code. Pinning an action with unnecessary write access still grants unnecessary write access. Reproducibility makes an engineering decision more stable; it does not make the decision correct.

Imagine asking an assistant to repair a failing release workflow. It proposes a third-party helper, regenerates the lockfile, and produces a passing run. All three actions might be mechanically correct. Yet the helper could upload build outputs to an external service, require a token with broad permissions, or execute a downloaded script. Those are hypothetical review scenarios, not claims about a particular action. A human must evaluate whether that new trust relationship is justified by the original request.

The right acceptance question is therefore not simply whether the lockfile exists. Ask what executable dependency changed, why it was needed, what authority it receives, and what evidence supports accepting it. An agent can gather the answers and point reviewers to relevant files. It should not transform a successful dependency resolution into an implicit approval to expand the pipeline's trust boundary.

Review the workflow and its lockfile as one change

A readable workflow and its resolved dependency inventory belong in the same review. Approving only the YAML misses the exact commits that will execute. Approving only the lockfile misses the events, permissions, conditions, and data flows that make those commits consequential. Teams should ask agents to explain both sides together, with a short account of the intended behavior and the concrete dependency changes needed to achieve it.

A practical review packet can remain compact. It should identify the affected workflows, the added or updated actions, the old and new resolved commits where relevant, and the justification for each change. It should also call out permission changes and any new handling of secrets or artifacts. These are proposed team practices, not extra fields that GitHub promises to generate automatically. The point is to turn a large machine-generated diff into decisions that a reviewer can actually make.

  • Intent: which delivery problem is being solved, and why is a dependency change necessary?
  • Identity: which repository and exact commit will provide the executable code?
  • Authority: which credentials, network destinations, and write permissions can that code reach?
  • Evidence: what changed upstream, and which checks demonstrate compatibility with this repository?

Do not mistake transitive coverage for universal coverage

The scope deserves careful reading. GitHub's documentation describes coverage of action dependencies, including transitive action dependencies, but makes an important exception for the dependencies inside reusable workflow calls. A reusable workflow is covered by the lockfile of the repository where that workflow is defined. A team consuming a shared workflow should therefore understand the controls maintained by the team publishing it, rather than assume a local file governs every nested execution.

This matters when an agent tries to simplify CI by moving steps into a central workflow. The visible pull request can become smaller while the operational dependency becomes more indirect. Ask who owns that shared workflow, how its dependencies are reviewed, and what happens when the provider updates it. Centralization can improve consistency, but it also concentrates responsibility. It is not a reason to stop examining the trust chain.

Likewise, do not extend the feature's promise to every input in a build. A workflow dependency lockfile is not, by itself, proof that package downloads, container contents, fetched scripts, or external services are immutable or trustworthy. Inventory those separately using the controls appropriate to each system. An agent's summary should state what was covered and what remains outside the evidence, instead of presenting a locked workflow as a fully secured software supply chain.

Let automation maintain the artifact, not define the policy

The general availability announcement says Dependabot regenerates the matching lockfile entry when it opens an action version update for an onboarded workflow. That is useful maintenance automation: the readable reference and resolved dependency can move together in one pull request. It does not mean every generated update should be merged automatically. Review depth should depend on the sensitivity of the workflow and the significance of the upstream change.

GitHub also describes a check for stale lockfiles that does not modify files, and a Require lockfile policy available to enterprise, organization, and repository administrators. These controls address different problems. A freshness check detects inconsistency. A requirement establishes adoption. Neither replaces a decision about whether the newly resolved code belongs in the delivery path. Treating those layers separately makes it easier to explain which risk each control actually reduces.

For coding agents, a sensible division of labor is to generate or refresh the artifact with the supported tool, report the result, and stop when policy approval is needed. Humans establish the allowed dependency sources, the reviewers for sensitive changes, and the conditions under which automation may proceed. Do not give an agent permission to weaken a requirement merely because the requirement blocks its current task. A failed safeguard is a review event, not a prompt to remove the safeguard.

A rollout that produces evidence instead of ceremony

Start with a workflow whose behavior and owners are well understood. Record its current action dependencies, permissions, and expected outputs before asking an assistant to onboard it. Generate the lockfile using the documented tooling, inspect the proposed workflow changes, and confirm that the resulting run performs the intended work. Keep the initial migration separate from unrelated refactoring so that a reviewer can see whether the change is actually limited to dependency resolution.

Next, exercise the failure path in an isolated branch or disposable repository. Check how the system behaves when a workflow references an unrecorded dependency or the lockfile becomes stale. The goal is not to manufacture a green demonstration; it is to learn whether the team recognizes and handles a blocked run without disabling its controls. Use only harmless test changes, avoid production credentials, and document the observed behavior rather than predicting it from the announcement.

Then extend adoption according to risk. Build verification, artifact publication, and deployment workflows have different consequences when compromised. Assign owners and review expectations accordingly. A small team may use one explicit reviewer rotation instead of a complex committee, but someone still needs authority to accept dependency changes and responsibility for investigating exceptions. The agent can prepare the inventory and migration batches; it should not decide which repositories are exempt.

Keep updates reviewable after the first migration

A lockfile is most valuable when subsequent changes remain understandable. Ask an assistant to separate routine dependency refreshes from changes to workflow logic and permissions whenever practical. If those changes must be combined, require an explanation of their relationship. A reviewer should not have to infer whether a new credential scope is necessary for the dependency update or merely convenient for the agent's proposed implementation.

When resolving a merge conflict, regenerate the artifact with the supported tooling rather than accepting an agent's hand-edited compromise. Then review the resulting resolution again. A conflict between two dependency updates is not just a text-formatting problem: the final executable selection can differ from either previously approved branch. This is another place where human control means evaluating the actual result, not trusting that both earlier intentions were individually reasonable.

Keep a modest audit trail: the reason for the update, the reviewer, the resolved dependency change, and the checks performed. Track useful operational signals such as blocked unrecorded dependencies, unexpected upstream changes caught during review, and time spent resolving legitimate updates. Avoid measuring success only by the number of lockfiles generated. Coverage is useful, but a generated file that nobody understands can create confidence without corresponding control.

Use the announcement without overstating it

The October 28 changelog is the source for the general availability status and plan coverage discussed here. At the time of this check, the linked conceptual documentation still carried a public-preview notice. That discrepancy is worth making explicit rather than silently merging the two descriptions. Consult current setup instructions and your organization's available settings before deploying the feature, especially where a rollout or policy boundary affects a sensitive workflow.

The broader lesson is not tied to one vendor setting. Coding agents increasingly modify the machinery that validates and ships their own work. That makes executable dependencies part of the human review surface, not background infrastructure. Workflow lockfiles can make that surface clearer by connecting readable references to recorded code. The human remains responsible for deciding whether the code, its permissions, and its purpose are acceptable. Delegate the bookkeeping; retain command of what CI is allowed to execute.