Repository navigation
What digest should CI compare after a docker save/load handoff? #4244
Replies: 2 comments 3 replies
|
I did not rerun the workflow. The official CLI and attestation docs already distinguish the three digests you saw, and they do not treat index-digest equality after
Build attestations (default If the property you want is that the published platform image is the one that was scanned, compare the platform manifest digest and/or the config digest of the scanned image to the same digests of the published platform image — not the index digest. The config digest identifies the image configuration; the platform manifest digest identifies that platform's manifest (config + layers). The index digest identifies the list, which can also include attestation manifests. The matching |
|
Building on Why
|
Uh oh!
There was an error while loading. Please reload this page.
I have a two-job GitHub Actions workflow. The first job builds a single-platform image, runs it, and scans it with Trivy. It passes the image tar to a second job, which is the only one with registry write permissions.
In this run, BuildKit printed an image config digest starting with
43f22837and a manifest-list digest starting withbd24fc7e. The push to GHCR reported the samebd24fc7emanifest-list digest. I want to turn that observation into a pipeline check without assuming every runner uses the same image store or preserves the same attestation metadata.Is equality of the exported and pushed index digests something
docker save/docker loadguarantees in this setup, or just what happened on these runners? If the guarantee I want is that the published platform image is the one that was scanned, what would you compare across the two jobs: the platform manifest digest, the config digest, or something else? I’m especially interested in the case where the runtime image is unchanged but the index changes because of provenance metadata.All reactions