File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 85
85
# rename attest bundle to github-aws-runners-terraform-aws-github-runner-attestation-$attestation-id.sigstore
86
86
# OpenSSF expects the attestation bundle to be named in this format (*.sigstore)
87
87
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
88
89
mv ${ATTESTATION_BUNDLE} $SIGSTORE_BUNDLE
89
90
if [ -z "$SIGSTORE_BUNDLE" ]; then
90
91
echo "No attestation bundle found, skipping attachment."
91
92
exit 0
92
93
fi
93
94
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}"
You can’t perform that action at this time.
0 commit comments