edu
edu copied to clipboard
How to Create and Verify a Provenance Document with Github Actions
Drive-by comment - https://github.com/chainguard-dev/edu/blob/dcb111b5a6897079976550df4d08de627ad41f1d/.github/workflows/build-terminal-image.yaml#L85-L87 shows how to create an attestation for an SPDX JSON file here in the Edu repo.
On the verifying side, the following command verifies the attestation:
cosign verify-attestation <registry_url>/<image> \
--type "https://spdx.dev/Document" \
--certificate-identity https://github.com/chainguard-dev/edu/.github/workflows/build-terminal-image.yaml@refs/heads/main \
--certificate-oidc-issuer https://token.actions.githubusercontent.com