Skip to content

Commit

Permalink
Merge pull request #428 from viccuad/main
Browse files Browse the repository at this point in the history
fix: Consume digest from step output
  • Loading branch information
viccuad authored Dec 13, 2024
2 parents 46ad4bf + ebe1254 commit 7f55537
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,18 @@ jobs:
- name: Sign container image
run: |
cosign sign --yes \
ghcr.io/${{github.repository_owner}}/audit-scanner@${{ needs.build.outputs.digest }}
ghcr.io/${{github.repository_owner}}/audit-scanner@${{ steps.build-image.outputs.digest }}
cosign verify \
--certificate-oidc-issuer=https://token.actions.githubusercontent.com \
--certificate-identity="https://github.com/${{github.repository_owner}}/audit-scanner/.github/workflows/release.yml@${{ github.ref }}" \
ghcr.io/${{github.repository_owner}}/audit-scanner@${{ needs.build.outputs.digest }}
ghcr.io/${{github.repository_owner}}/audit-scanner@${{ steps.build-image.outputs.digest }}
- id: setoutput
name: Set output parameters
run: |
echo "repository=ghcr.io/${{github.repository_owner}}/audit-scanner" >> $GITHUB_OUTPUT
echo "tag=${{ env.TAG_NAME }}" >> $GITHUB_OUTPUT
echo "digest=${{ needs.build.outputs.digest }}" >> $GITHUB_OUTPUT
echo "digest=${{ steps.build-image.outputs.digest }}" >> $GITHUB_OUTPUT
attestation:
name: Fetch, sign and verify SBOM and provenance files
Expand Down

0 comments on commit 7f55537

Please sign in to comment.