Skip to content

Commit

Permalink
fix/ci: attestations image URI in job
Browse files Browse the repository at this point in the history
  • Loading branch information
kbdharun committed May 23, 2024
1 parent c0402c6 commit 2401a0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
image:
runs-on: ubuntu-latest
permissions:
id-token: write # Additional permissions for persistance of attestations
id-token: write # Additional permissions for the persistence of attestations
contents: read
packages: write # To push to GHCR
attestations: write # To create and write attestations
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push image
id: push-ghcr
id: push
uses: docker/[email protected]
with:
context: .
Expand All @@ -99,6 +99,6 @@ jobs:
id: attest
if: github.repository == 'kbdharun/dev-image' && github.event_name != 'pull_request'
with:
subject-name: ghcr.io/${{ github.actor }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push-ghcr.outputs.digest }}
subject-name: ghcr.io/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: false

0 comments on commit 2401a0e

Please sign in to comment.