Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
reevejd committed Sep 22, 2023
1 parent 1a1f099 commit 59db3b7
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ jobs:

- name: Push Image
id: push-image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -249,10 +249,21 @@ jobs:
- name: Sign container image
if: ${{ inputs.push }}
run: |
cosign sign --key cosign.key \
cosign sign --insecure-ignore-tlog=true --key cosign.key \
-a "repo=${{ github.repository }}" \
-a "workflow=${{ github.workflow }}" \
-a "ref=${{ github.sha }}" \
${{ inputs.image }}@${{ steps.push-image.outputs.digest }}
env:
COSIGN_PASSWORD: ${{ secrets.CONTAINER_IMAGE_SIGNING_PASSWORD }}

- name: Sign container image attestations
if: ${{ inputs.push }}
run: |
cosign attest \
--key cosign.key \
--type spdx --predicate sbom.spdx.json \
${{ inputs.image }}@${{ steps.push-image.outputs.digest }}
env:
COSIGN_PASSWORD: ${{ secrets.CONTAINER_IMAGE_SIGNING_PASSWORD }}

0 comments on commit 59db3b7

Please sign in to comment.