a-scie / lift

Provides science, a high level tool to build scies with.
https://science.scie.app/
Apache License 2.0
13 stars 5 forks source link

Support artifact attestations. #64

Open jsirois opened 5 months ago

jsirois commented 5 months ago

There are two parts to this:

jsirois commented 5 months ago

Noting that validating a GitHub attestation requires a GitHub login currently to retrieve the attestation bundle from GitHub Attestations (step 2 below):

:; curl -sL https://github.com/pex-tool/pex/releases/download/v2.7.0/pex -o /tmp/pex
:; curl -sL -H "Authorization: Bearer $GITHUB_PAT" https://api.github.com/users/pex-tool/attestations/sha256:$(sha256sum /tmp/pex | cut -d' ' -f1) | jq -c .attestations[].bundle > pex.intoto.jsonl
:; sigstore verify github --repository pex-tool/pex --bundle pex.intoto.jsonl /tmp/pex
OK: /tmp/pex