File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 8888jobs :
8989 build :
9090 runs-on : ubuntu-latest
91+ permissions :
92+ id-token : write
93+ attestations : write
9194 env :
9295 FROM_IMAGE : ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}
9396 DEBUG_IMAGE : ${{ inputs.docker-registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}-scone-debug-${{ inputs.sconify-version }}
@@ -150,6 +153,14 @@ jobs:
150153 echo "checksum=$(docker image inspect $DEBUG_IMAGE | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" >> "$GITHUB_OUTPUT"
151154 echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 $DEBUG_IMAGE)" >> "$GITHUB_OUTPUT"
152155
156+ - name : Attest Debug Image
157+ if : ${{ inputs.sconify-debug }}
158+ uses : actions/attest-build-provenance@v2
159+ with :
160+ subject-name : ${{ env.DEBUG_IMAGE }}
161+ subject-digest : sha256:${{ steps.push-debug.outputs.checksum }}
162+ push-to-registry : true
163+
153164 - name : Sconify Image Prod
154165 if : ${{ inputs.sconify-prod }}
155166 run : |
@@ -183,3 +194,11 @@ jobs:
183194 echo "image=$PROD_IMAGE" >> "$GITHUB_OUTPUT"
184195 echo "checksum=$(docker image inspect $PROD_IMAGE | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" >> "$GITHUB_OUTPUT"
185196 echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 $PROD_IMAGE)" >> "$GITHUB_OUTPUT"
197+
198+ - name : Attest Prod Image
199+ if : ${{ inputs.sconify-prod }}
200+ uses : actions/attest-build-provenance@v2
201+ with :
202+ subject-name : ${{ env.PROD_IMAGE }}
203+ subject-digest : sha256:${{ steps.push-prod.outputs.checksum }}
204+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments