File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,8 @@ jobs:
154154 tag : ${{ github.ref_name }}
155155 secrets :
156156 chainloop_token : ${{ secrets.CHAINLOOP_TOKEN }}
157+ cosign_key : ${{ secrets.COSIGN_KEY }}
158+ cosign_pass : ${{ secrets.COSIGN_PASSWORD }}
157159 permissions :
158160 packages : write
159161 contents : write
Original file line number Diff line number Diff line change 99 secrets :
1010 chainloop_token :
1111 required : true
12+ cosign_key :
13+ required : true
14+ cosign_pass :
15+ required : true
1216
1317jobs :
1418 # This reusable workflow inspects if the given workflow_name exists on Chainloop. If the Workflow does not exist
@@ -71,10 +75,12 @@ jobs:
7175 run : |
7276 chainloop attestation status --full
7377 attestation_sha=$(chainloop attestation push --key env://CHAINLOOP_SIGNING_KEY -o json | jq -r '.digest')
78+ # check that the command succeeded
79+ [ -n "${attestation_sha}" ] || exit 1
7480 echo "attestation_sha=$attestation_sha" >> $GITHUB_OUTPUT
7581 env :
76- CHAINLOOP_SIGNING_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
77- CHAINLOOP_SIGNING_KEY : ${{ secrets.COSIGN_KEY }}
82+ CHAINLOOP_SIGNING_PASSWORD : ${{ secrets.cosign_pass }}
83+ CHAINLOOP_SIGNING_KEY : ${{ secrets.cosign_key }}
7884
7985 - name : Mark attestation as failed
8086 if : ${{ failure() }}
You can’t perform that action at this time.
0 commit comments