Skip to content

Fix GHCR attestation example by listing GHCR first in metadata images #40291

@LindonAliu

Description

@LindonAliu

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/tutorials/publish-packages/publish-docker-images

What part(s) of the article would you like to see updated?

https://docs.github.com/en/actions/tutorials/publish-packages/publish-docker-images#publishing-images-to-docker-hub-and-github-packages

Why should the docs be changed? What use cases does it support?

The current order can cause the attestation to fetch a Docker Hub digest from GHCR, which returns 404. This affects users who push to multiple registries but attest only GHCR. The change prevents false failures and supports secure supply-chain workflows (SLSA-style provenance, compliance, CI reliability).

Reference failing run (context):
https://github.com/glu-lang/glu/actions/runs/17557475866/job/49865233829

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamdockerPull requests that update Docker codegithub_actionsPull requests that update GitHub Actions code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions