Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to Create and Verify a Provenance Document with Github Actions #459

Open
sheesh opened this issue Mar 10, 2023 · 1 comment
Open

How to Create and Verify a Provenance Document with Github Actions #459

sheesh opened this issue Mar 10, 2023 · 1 comment

Comments

@sheesh
Copy link
Collaborator

sheesh commented Mar 10, 2023

No description provided.

@jamonation
Copy link
Collaborator

Drive-by comment -

- name: cosign attest sbom
working-directory: terminal-images/${{ inputs.image }}
run: cosign attest -y --predicate sbom-x86_64.spdx.json --type spdxjson "$(cat image-refs.txt)"
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants