Skip to content

Commit 0e4a596

Browse files
committed
ci(fix): add step output image to pass the docker image to provenance step
1 parent 398f0dc commit 0e4a596

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ jobs:
113113
id-token: write
114114
packages: write
115115
outputs:
116+
image: ${{ steps.image.outputs.image }}
116117
digest: ${{ steps.push.outputs.digest }}
117118
steps:
118119
- name: Harden the runner
@@ -181,6 +182,12 @@ jobs:
181182
secrets: |
182183
GITHUB_TOKEN=${{ steps.app-token.outputs.token }}
183184
185+
- name: Output image
186+
id: image
187+
run: |
188+
image_name="ghcr.io/${{ github.repository }}"
189+
echo "image=$image_name" >> "$GITHUB_OUTPUT"
190+
184191
- name: Sign the published Docker Image
185192
if: ${{ github.event_name != 'pull_request' }}
186193
env:
@@ -220,7 +227,7 @@ jobs:
220227
packages: write
221228
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v2.1.0
222229
with:
223-
image: ghcr.io/${{ github.repository }}
230+
image: ${{ needs.docker.outputs.image }}
224231
digest: ${{ needs.docker.outputs.digest }}
225232
registry-username: ${{ github.actor }}
226233
secrets:

0 commit comments

Comments
 (0)