Skip to content

Commit

Permalink
build: Add SLSA Provenance Attestation
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Vitale <[email protected]>
  • Loading branch information
ThomasVitale committed May 16, 2024
1 parent 7977d3d commit 3e9852d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/multi-arch-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,18 @@ jobs:
- name: Sign image
run: |
cosign sign --yes "${REGISTRY}/${IMAGE}@${IMAGE_DIGEST}"
# provenance:
# needs: [merge]
# permissions:
# actions: read
# id-token: write
# packages: write
# uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
# with:
# image: ${{ needs.build.outputs.image-name }}
# digest: ${{ needs.build.outputs.image-digest }}
# registry-username: ${{ github.actor }}
# secrets:
# registry-password: ${{ secrets.push-token }}
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ IMAGE_DIGEST }}
provenance:
needs: [merge]
permissions:
actions: read
id-token: write
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
image: ${{ needs.build.outputs.image-name }}
digest: ${{ needs.build.outputs.image-digest }}
registry-username: ${{ github.actor }}
secrets:
registry-password: ${{ secrets.push-token }}

0 comments on commit 3e9852d

Please sign in to comment.