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/ 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 asuses: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 thehod/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>, orunsigned.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--nowskipped 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.