Skip to content

Commit 0750644

Browse files
npalmrjaegers
andauthored
chore(ci): Add intoto bundle to the release (#4629)
Adding intoto bundle --------- Co-authored-by: Ron <[email protected]>
1 parent b754f1c commit 0750644

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@ jobs:
8585
# rename attest bundle to github-aws-runners-terraform-aws-github-runner-attestation-$attestation-id.sigstore
8686
# OpenSSF expects the attestation bundle to be named in this format (*.sigstore)
8787
SIGSTORE_BUNDLE=$RUNNER_TEMP/github-aws-runners-terraform-aws-github-runner-attestation-${ATTESTATION_ID}.sigstore
88+
INTOTO_BUNDLE=$RUNNER_TEMP/github-aws-runners-terraform-aws-github-runner-attestation-${ATTESTATION_ID}.intoto.jsonl
8889
mv ${ATTESTATION_BUNDLE} $SIGSTORE_BUNDLE
8990
if [ -z "$SIGSTORE_BUNDLE" ]; then
9091
echo "No attestation bundle found, skipping attachment."
9192
exit 0
9293
fi
9394
gh release upload $TAG_NAME "$SIGSTORE_BUNDLE"
95+
cat ${SIGSTORE_BUNDLE} | jq -r '.dsseEnvelope | select(.payloadType == "application/vnd.in-toto+json").payload' | base64 -d | jq .> ${INTOTO_BUNDLE}
96+
gh release upload $TAG_NAME "${INTOTO_BUNDLE}"

0 commit comments

Comments
 (0)