For AI agents: the complete documentation index is available at https://docs.hod.sh/llms.txt, the full documentation bundle is available at https://docs.hod.sh/llms-full.txt, and this page is available as Markdown at https://docs.hod.sh/reference/lock.md.

hod.lock

hod.lock, at the repository root, pins the published components a pipeline uses. hod component update writes it; the compiler refuses a published uses: that isn't in it. Local components (uses: ./…) need no entry: the commit pins them. Templates (a job's uses:) are locked the same way, and so are the published components a template's steps use: one flat list for the whole pipeline, found by reading each template's component.yaml.

# hod.lock: written by `hod component update`; don't edit by hand
version: 1
components:
  "hod/setup-go@v1":
    version: "1.4.2"
    repository: "registry.hod.sh/c/setup-go"
    digest: "sha256:3f29…"
    signer: "key:hod"
    signed_at: "2026-11-28T10:00:00Z"
  "ghcr.io/acme/deploy@v3":
    version: "3.1.0"
    repository: "ghcr.io/acme/deploy"
    digest: "sha256:62e2…"
    signer: "keyless:https://token.actions.githubusercontent.com:https://github.com/acme/deploy/.github/workflows/release.yml@refs/tags/v3.1.0"
    reason: "CVE-2026-1234 fix"

hod/ components lock as registry.hod.sh/c/<name>. The host stores nothing: it serves ghcr.io/hod-ci/components/<name>, so the lock doesn't depend on where they are hosted.

  • version: 1: the format. Hod refuses versions it doesn't know.
  • components: one entry per reference, keyed exactly as uses: writes it, sorted. Every value is a double-quoted string.
    • version: the exact semver version the range resolved to.
    • repository: registry host and path, after the hod/ prefix or the org's prefixes were applied.
    • digest: the component's OCI manifest digest. Runs fetch this digest, never a tag.
    • signer: who signed it, as verified when it was locked: key:<name>, keyless:<issuer>:<identity>, or unsigned.
    • signed_at (optional): the signing time the signature proved (a Rekor entry or an RFC 3161 timestamp). The cooldown counts from it.
    • reason (optional): why --now skipped the cooldown.

For a dependency bot (a Renovate manager): the reference's @v1 is the range; a new version is the highest exact semver tag in that range in the repository, and updating an entry means a new version and digest (and the signer and time, which only hod component update can verify). A locked version whose tag points at another digest is a moved tag: hod component update refuses it as a probable compromise.