Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

publish attestations for release container images #890

Closed
qrkourier opened this issue Feb 24, 2025 · 0 comments · Fixed by #896
Closed

publish attestations for release container images #890

qrkourier opened this issue Feb 24, 2025 · 0 comments · Fixed by #896
Assignees
Milestone

Comments

@qrkourier
Copy link
Member

qrkourier commented Feb 24, 2025

Verify the public attestation for an image:

gh attestation verify --owner openziti oci://docker.io/openziti/zrok:0.4.49

ref: https://cli.github.com/manual/gh_attestation_verify


Inspect the bundled SBOM:

docker buildx imagetools inspect openziti/zrok:0.4.49 \
    --format "{{ json .SBOM.SPDX }}"

ref: https://docs.docker.com/build/metadata/attestations/sbom/#inspecting-sboms


Inspect the bundled SLSA:

docker buildx imagetools inspect openziti/zrok:0.4.49 \
    --format "{{ json .Provenance.SLSA }}"

ref: https://docs.docker.com/build/metadata/attestations/slsa-provenance/#inspecting-provenance


bonus: extract the Dockerfile from the SLSA metadata:

 docker buildx imagetools inspect openziti/zrok:0.4.49 \
    --format '{{ range (index .Provenance.SLSA.metadata "https://mobyproject.org/buildkit@v1#metadata").source.infos }}{{ if eq .filename "Dockerfile" }}{{ .data }}{{ end }}{{ end }}' | base64 -d
@qrkourier qrkourier added this to the v1.0 milestone Feb 24, 2025
@qrkourier qrkourier self-assigned this Feb 24, 2025
@qrkourier qrkourier linked a pull request Feb 24, 2025 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant