Skip to content

How should I include SLSA provenance? #368

Answered by woodruffw
jmgate asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jmgate, you're seeing that because PyPI expects an attestation object, not a Sigstore bundle (or a JSONL).

So, there are a few moving pieces here:

  • Does your multiple.into.jsonl contain multiple Sigstore bundles? If so, they'll need to each be broken out and turned into a separate attestation object for twine and other tools to upload them correctly.
  • Are your attestations using the SLSA predicate type? Warehouse (PyPI) strictly enforces SLSA v1 here, via this constant.
  • Once you've confirmed those, you can massage a Sigstore bundle into the attestation object format by using pypi-attestation's API or CLI. Specifically, you'll probably need Attestation.from_bundle.

TL;DR: You're seein…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jmgate
Comment options

@webknjaz
Comment options

@woodruffw
Comment options

Answer selected by webknjaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants