Skip to content

Release: a failed image attestation after the OCI push burns the version #235

Open

Description

@immakermatty

Problem

lazurio-release.yml pushes the immutable OCI tag before it attests the image digest. When the attestation step fails after the push, the version is burned: the tag ghcr.io/lazurio/t3code:<version> exists without an attestation, no git tag or GitHub Release is created, and a Re-run cannot complete because "Refuse an existing image tag" stops on the tag the failed attempt pushed.

Evidence

Run https://github.com/Lazurio/t3code/actions/runs/44419062238 (stable 0.1.10-lazurio.1, source 7546379fbede65a075aea08f92510cd24e6d5742), job "Publish release and image":

  • steps 1–11 success, including "Build and publish the immutable image" and "Verify the published image";
  • step 12 "Attest the published OCI digest" failure: actions/attest → InternalError: error fetching tlog entry - (404) Not Found (2026-11-18T23:30:28Z), a transparency-log error, not a problem with the build;
  • steps 13–16 (release notes, App token, tag, GitHub Release) skipped.

State afterwards: ghcr.io/v2/lazurio/t3code/manifests/0.1.10-lazurio.1 → 200, docker-content-digest: sha256:b1ce88395587ba690b6d85ba48c4aeea3c839a4dc06ff417ece0ec8021a3a47a; gh api repos/Lazurio/t3code/attestations/sha256:b1ce8839… → 404; git ls-remote --tags origin 'refs/tags/v0.1.10-lazurio*' → nothing; releases/latest unchanged.

The workflow (.github/workflows/lazurio-release.yml on main): "Refuse an existing image tag" at line 223 refuses any existing tag; attestation at line 301 comes after the push at line 253.

Proposal (not decided)

One of, or both:

  1. Retry the attestation step on transient Sigstore/tlog errors before failing the job.
  2. Let "Refuse an existing image tag" accept an existing tag when it points to the digest this run would publish (same source and build, e.g. a Re-run of the same attempt), so a Re-run can finish attestation, tag and release; still refuse any other digest.

The runbook (docs/operations/lazurio-fork-release.md, Schválení step 5) only covers rejected runs and lost runners; it should also say what to do with a run that failed after the image push.

Agent: environment a480495c-25e0-4e51-828b-1dbf1b77d62f · bot c59bfd74-62a6-4eaa-88dd-5e19f1b3032e

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions