File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 74
74
for f in $(find . -name '*.zip'); do
75
75
gh release upload $tag_name $f
76
76
done
77
+ - name : Attach attestation
78
+ if : ${{ steps.release.outputs.releases_created == 'true' }}
79
+ env :
80
+ ATTESTATION_BUNDLE : ${{ steps.attest.outputs.bundle-path }}
81
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82
+ TAG_NAME : ${{ steps.release.outputs.tag_name }}
83
+ ATTESTATION_ID : ${{ steps.attest.outputs.attestation-id }}
84
+ run : |
85
+ # rename attest bundle to github-aws-runners-terraform-aws-github-runner-attestation-$attestation-id.sigstore
86
+ # OpenSSF expects the attestation bundle to be named in this format (*.sigstore)
87
+ SIGSTORE_BUNDLE=$RUNNER_TEMP/github-aws-runners-terraform-aws-github-runner-attestation-${ATTESTATION_ID}.sigstore
88
+ mv ${ATTESTATION_BUNDLE} $SIGSTORE_BUNDLE
89
+ if [ -z "$SIGSTORE_BUNDLE" ]; then
90
+ echo "No attestation bundle found, skipping attachment."
91
+ exit 0
92
+ fi
93
+ gh release upload $tag_name "$SIGSTORE_BUNDLE"
You can’t perform that action at this time.
0 commit comments