File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -79,23 +79,26 @@ jobs:
7979 APP_NAME=${{ steps.extract_version.outputs.MAVEN_NAME }}
8080 APP_VERSION=${{ steps.extract_version.outputs.MAVEN_VERSION }}
8181
82+ # the following steps uses the identity token to provision an ephemeral certificate
83+ # against the sigstore community Fulcio instance.`
84+
8285 - name : install Cosign
8386 if : startsWith(github.ref, 'refs/tags/v')
8487 uses : sigstore/cosign-installer@v3.8.1
8588
8689 - name : write cosign key to file
8790 if : startsWith(github.ref, 'refs/tags/v')
88- run : |
89- echo "${{ secrets.COSIGN_PRIVATE_KEY }}" >> cosign.key
91+ run : ' echo "$KEY" > cosign.key'
92+ shell : bash
93+ env :
94+ KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
9095
9196 - name : sign the published docker image
9297 if : startsWith(github.ref, 'refs/tags/v')
9398 env :
94- COSIGN_EXPERIMENTAL : " true "
99+ COSIGN_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
95100 TAGS : ${{ steps.meta.outputs.tags }}
96101 DIGEST : ${{ steps.build-and-push.outputs.digest }}
97- # This step uses the identity token to provision an ephemeral certificate
98- # against the sigstore community Fulcio instance.
99102 run : |
100103 echo "${TAGS}" | while read tag; do
101104 cosign sign --key cosign.key $tag
You can’t perform that action at this time.
0 commit comments