Skip to content

fix(ci): show the package description on the GHCR page #29

Done

Description

@dan-petty

Problem

#19 (PR #27) gave the manifest list the OCI annotations. Run 41 on 2026-11-20 published 20261120.41: its manifest list holds org.opencontainers.image.description, and latest points to it. The GHCR package page still shows no description (read 2026-11-20, 19:15 UTC).

The page marks the version with the tag sha256-802666920311510f5e162bfab0b1f015fa4d97e4ea17635db356adfedc878126 as the newest. That tag is the fallback index of the OCI referrers tag schema. actions/attest with push-to-registry pushes it after the manifest list (19:13:26; the list 19:13:20). It holds one sigstore bundle and no annotation. A possible cause: GHCR takes the description from the newest version. This is not proven.

Change

  • Find where GHCR reads the description of a multi-arch package that has an attestation in the registry: GitHub documentation, or a test with a test package.
  • Make the package page show the description. Keep the attestation in the registry.

Proof

After a publish on main, the package page shows the description.

Source

Source: #19

Alternatives check of 2026-11-23: partly.
Tool: docker/buildx (https://github.com/docker/buildx), Apache-2.0, last activity 2026-11-23, maintained.
Reason: Searches surfaced only registry-CLI candidates (buildx, regctl, crane). buildx copies an index with --annotation onto the referrers tag, but no tool shows where GHCR reads the description or verifies the page.

Covers:

  • Copies an OCI index to a tag with --annotation
  • Reuses metadata-action annotation values for both indexes
  • Leaves the attested manifest list digest unchanged
  • Already present in the publish workflow

Lacks:

  • No in-place annotation; the copy yields a new index digest
  • No check that GHCR renders the description from that index
  • Annotation values must be supplied by the workflow
  • Does not diagnose which version GHCR reads the description from

Proposed design

Problem statement

The GHCR package page shows no description, although the published manifest list carries org.opencontainers.image.description. actions/attest pushes a second, newer package version under the OCI referrers fallback tag sha256-<hex>, and that index carries no annotation. The change copies the referrers index with the manifest list's annotations, so both package versions carry the description and the attestation stays in the registry.

Acceptance criteria

Requirement: Annotate the attestation referrers index

The publish job SHALL copy the attestation referrers tag with docker buildx imagetools create --annotation and the values of steps.meta.outputs.annotations, so that its index carries the same org.opencontainers.image.description as the manifest list.

Scenario: Referrers index carries the description

  • WHEN the publish job of a run on main has copied the tag ghcr.io/dan-petty/devtools:sha256-<hex>, where <hex> is the digest of the manifest list without its sha256: prefix
  • THEN docker buildx imagetools inspect --raw ghcr.io/dan-petty/devtools:sha256-<hex> shows an org.opencontainers.image.description annotation equal to the one that docker buildx imagetools inspect --raw ghcr.io/dan-petty/devtools@<digest> shows.

Requirement: Keep the registry attestation

The publish job MUST keep the build provenance attestation discoverable in the registry after it copies the referrers index.

Scenario: Attestation verifies after the copy

  • WHEN the publish job of a run on main has copied the referrers index
  • THEN gh attestation verify oci://ghcr.io/dan-petty/devtools:latest --owner dan-petty exits with status 0.

Requirement: Show the description on the package page

The GHCR package page MUST show the description of the package after a publish on main.

Scenario: Package page shows the description

  • WHEN the publish job of a run on main has finished
  • THEN the package page of ghcr.io/dan-petty/devtools shows the value of org.opencontainers.image.description.

Requirement: Pass the workflow linters

The image workflow MUST pass actionlint and zizmor with no finding.

Scenario: Workflow lint

  • WHEN a pull request changes .github/workflows/image.yml
  • THEN the test job of .github/workflows/image.yml reports no actionlint finding and no zizmor finding, and the job passes.

Existing Tool Considered

The alternatives check of 2026-11-23 in the issue body returns partly and names docker/buildx (https://github.com/docker/buildx, Apache-2.0) as the tool. That block states what the tool covers and what it lacks. The publish job uses docker buildx imagetools create --annotation to copy the referrers index with the values of steps.meta.outputs.annotations. Two live checks cover the lacks of the block: gh attestation verify oci://ghcr.io/dan-petty/devtools:latest --owner dan-petty shows the attestation, and the package page check after a publish on main shows the description.

Key questions

  • Where does GHCR read the description of a multi-arch image?: GitHub reads it from the OCI annotations of the image manifest or index, not from the labels of the platform images. The repository records this rule at .github/workflows/image.yml:487 and in README.md. The issue records that the page still shows no description when only the manifest list carries the annotation, so the plan also annotates the other package version. [sources: .github/workflows/image.yml:487, README.md]
  • Which package version does the GHCR page mark as the newest after a publish?: The version under the referrers fallback tag sha256-<hex>, which actions/attest pushes after the manifest list. The issue records the tag sha256-802666920311510f5e162bfab0b1f015fa4d97e4ea17635db356adfedc878126 as the newest on 2026-11-20, 19:13:26 UTC, five seconds after the manifest list. [sources: .github/workflows/image.yml]
  • How should the publish job make GHCR show the description while it keeps the attestation in the registry?: Annotate the attestation referrers index after actions/attest with docker buildx imagetools create --annotation. The manifest list already carries the description, and the referrers index is the other, newer package version. Both then carry the description, and the manifest list digest and its attestation do not change. (best practice) [sources: .github/workflows/image.yml:487, .github/workflows/image.yml:514]
    • Chosen: Copy the referrers index with docker buildx imagetools create --annotation. Gives the other, newer package version the description and keeps the attested manifest list digest unchanged. buildx is already in the publish job.
    • Rejected: Re-push the manifest list with the annotation. Annotations are part of the manifest. The digest changes, and the build provenance attestation no longer matches the published digest.
    • Rejected: Set the description with the GitHub Packages REST API. The package belongs to the user dan-petty, so the call needs a user token with admin permission on the package. It also adds a second source of truth next to the image annotations.
    • Rejected: Add the annotation to each platform image manifest. The platform digests change. The manifest list and the attestations of the publish job name the old digests.
    • Rejected: Stop pushing the attestation to the registry. The issue requires the in-registry attestation, and README.md documents gh attestation verify against the registry.
  • Which annotation values should the referrers index get?: Reuse the index-level annotations output of docker/metadata-action at .github/workflows/image.yml:511, the same values that the manifest list gets. The description, source and licenses then stay in one place. (best practice) [sources: .github/workflows/image.yml:501, .github/workflows/image.yml:511, .github/workflows/image.yml:514]
    • Chosen: Reuse steps.meta.outputs.annotations. One source of values for both indexes. The description matches the manifest list by construction, and no literal is duplicated.
    • Rejected: Add only org.opencontainers.image.description. Duplicates the value and leaves the other index annotations off the newer package version.
    • Rejected: Hard-code the description in the step. Creates a second source of truth that drifts from the metadata-action output.
  • How does the plan confirm where GHCR reads the description of a package that has an in-registry attestation?: Check the real package page after the next publish on main. That check is the proof of the issue and needs no extra repository or token. (best practice) [sources: README.md]
    • Chosen: Check the package page after the next publish on main. Uses the real package, the real attestation and the real page. No extra repository, token or permission is necessary, and the Proof section of the issue names this check.
    • Rejected: Publish a test package in a scratch repository. Needs a second repository and package permissions, and the page of the owner's package can behave differently from the page of a scratch package.
    • Rejected: Rely on the GitHub documentation. The documentation describes the annotation of the image manifest or index. It does not describe a package that has an in-registry attestation.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    type/bug
    status/new
    value/low
    effort/medium
    source/agent
    scope/ci
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 20, 2026
  4. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Next step: the alternatives check records a verdict. See the section Proposed design of the body.

  5. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    Contributor

    The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.

    Searches (10)

    Tools considered:

    Searches run:

    • regctl image mod --annotation referrers tag OCI index annotations, results: 5
    • annotate OCI image index annotations tool regctl crane buildx imagetools, results: 5
    • regclient regctl image mod add annotation to manifest, results: 5
    • GitHub Container Registry package description from OCI annotations manifest index multi-arch, results: 5
    • crane mutate --annotation OCI index, results: 5
    • regctl image mod annotation example, results: 5
    • docker buildx imagetools create --annotation documentation, results: 5
    • oras manifest annotate command OCI image index, results: 5
    • regclient regctl github repository, results: 5
    • ghcr.io package page missing description annotation attestation, results: 5

    Sources:

  6. added
    status/ready
    and removed
    status/new
    on Nov 23, 2026
  7. devops-cli-service commented on Nov 23, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  8. added
    owner/service
    on Nov 26, 2026
  9. 10 remaining items

  10. added 3 commits that reference this issue on Nov 27, 2026
  11. added
    status/planned
    owner/service
    status/in-progress
    status/in-review
    and removed
    status/ready
    status/planned
    status/in-progress
    on Nov 27, 2026
  12. devops-cli-service commented on Nov 27, 2026

    @devops-cli-service
    Contributor

    The draft pull request #107 holds the final title and body. In mode on of roadmap.fix_checks.mode, the watch row marks it ready when its checks pass, and a fix-checks Job repairs a failed check whose name gives the class test, lint or types. In each other case the watch row stops the item: another failed check, a cancelled check, a conflict, a fix-checks Job that ended with no repair, or another mode.

    Spend: 43 model requests, 2134243 input tokens, 20443 output tokens.

  13. removed
    owner/service
    on Nov 27, 2026
  14. removed
    status/in-review
    on Nov 27, 2026
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

    effort/mediumpriority/p2-mediumscope/cisource/agenttype/bugvalue/low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions