File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments