Skip to content

Commit 1a30020

Browse files
committed
ci(backend-signing): set COSIGN_EXPERIMENTAL=1 for oci-1-1 referrers mode
cosign v2.4.1 still gates --registry-referrers-mode=oci-1-1 behind the experimental flag, so the first signing run after the backend-signing merge failed with "you must set COSIGN_EXPERIMENTAL=1". Set it at the job env level so both the quay and dockerhub cosign steps inherit it, and note the requirement in .agents/backend-signing.md so a future cosign bump can drop the flag. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Assisted-by: Claude:claude-opus-4-7 [Claude Code]
1 parent 8bbe89a commit 1a30020

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.agents/backend-signing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ cosign sign --yes --recursive \
4949
Sign by digest, never by tag — signing by tag binds the signature to
5050
whatever the tag points at *now*, and a subsequent tag push orphans it.
5151

52+
`--registry-referrers-mode=oci-1-1` is still gated behind
53+
`COSIGN_EXPERIMENTAL=1` in cosign v2.4.x (set at the job env level in
54+
`backend_merge.yml`). Re-evaluate when bumping the pinned cosign release
55+
— newer versions are expected to graduate this flag and the env var can
56+
then be dropped.
57+
5258
`backend_build_darwin.yml` builds and pushes single-arch darwin images
5359
that bypass the manifest-list merge. If/when those entries get a gallery
5460
`verification:` policy, the equivalent cosign step has to land there

.github/workflows/backend_merge.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ jobs:
4040
id-token: write
4141
env:
4242
quay_username: ${{ secrets.quayUsername }}
43+
# cosign v2.4.x still gates --registry-referrers-mode=oci-1-1 behind
44+
# this flag. Without it, signing fails with:
45+
# invalid argument "oci-1-1" for "--registry-referrers-mode" flag:
46+
# in order to use mode "oci-1-1", you must set COSIGN_EXPERIMENTAL=1
47+
COSIGN_EXPERIMENTAL: '1'
4348
steps:
4449
# Sparse checkout: the merge job needs `.github/scripts/` (for the
4550
# keepalive cleanup script) but none of the source tree.

0 commit comments

Comments
 (0)