diff --git a/.github/actions/container_sbom/action.yml b/.github/actions/container_sbom/action.yml index 8372d3238e..8ce055ca48 100644 --- a/.github/actions/container_sbom/action.yml +++ b/.github/actions/container_sbom/action.yml @@ -34,7 +34,7 @@ runs: run: | set -ex syft packages ${{ inputs.containerReference }} -o cyclonedx-json > container-image-predicate.json - cosign attest --key env://COSIGN_PRIVATE_KEY --predicate container-image-predicate.json --type cyclonedx > container-image.att.json + cosign attest ${{ inputs.containerReference }} --key env://COSIGN_PRIVATE_KEY --predicate container-image-predicate.json --type cyclonedx > container-image.att.json cosign attach attestation ${{ inputs.containerReference }} --attestation container-image.att.json # TODO: type should be auto-discovered after issue is resolved: # https://github.com/sigstore/cosign/issues/2264