Skip to content

Commit 607c214

Browse files
committed
ci: enable OCI 1.1 referrers mode for cosign attestation
1 parent f80f973 commit 607c214

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,7 @@ jobs:
8787
- name: Attest SBOM (cosign)
8888
run: |
8989
# --yes avoids the interactive tlog consent prompt in CI.
90-
cosign attest --yes --type spdx --predicate ./sbom.spdx.json \
90+
COSIGN_EXPERIMENTAL=1 cosign attest --yes \
91+
--registry-referrers-mode=oci-1-1 \
92+
--type spdx --predicate ./sbom.spdx.json \
9193
"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build_and_push.outputs.digest }}"

0 commit comments

Comments
 (0)