Skip to content

Commit f3428e2

Browse files
fix: test fix attest
1 parent 9547c6e commit f3428e2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/sconify.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,14 @@ jobs:
153153
echo "image=$DEBUG_IMAGE" >> "$GITHUB_OUTPUT"
154154
echo "checksum=$(docker image inspect $DEBUG_IMAGE | jq .[0].RepoDigests[0] | sed 's/"//g' | awk -F '@sha256:' '{print $2}')" >> "$GITHUB_OUTPUT"
155155
echo "mrenclave=$(docker run --rm -e SCONE_HASH=1 $DEBUG_IMAGE)" >> "$GITHUB_OUTPUT"
156+
echo "id=$(docker image inspect $DEBUG_IMAGE | jq .[0].Id | sed 's/"//g')" >> "$GITHUB_OUTPUT"
156157
157158
- name: Attest Debug Image
158159
if: ${{ inputs.sconify-debug }}
159160
uses: actions/attest-build-provenance@v2
160161
with:
161162
subject-name: ${{ env.IMAGE_REPO }}
162-
subject-digest: sha256:${{ steps.push-debug.outputs.checksum }}
163+
subject-digest: sha256:${{ steps.push-debug.outputs.id }}
163164
push-to-registry: true
164165

165166
- name: Sconify Image Prod
@@ -201,5 +202,5 @@ jobs:
201202
uses: actions/attest-build-provenance@v2
202203
with:
203204
subject-name: ${{ env.IMAGE_REPO }}
204-
subject-digest: sha256:${{ steps.push-prod.outputs.checksum }}
205+
subject-digest: ${{ steps.push-prod.outputs.checksum }}
205206
push-to-registry: true

0 commit comments

Comments
 (0)