From 9bbfdb0fd4f152ba8ec855634f146c2296e8e9c8 Mon Sep 17 00:00:00 2001 From: Jinsoo Heo Date: Sat, 22 Aug 2026 12:25:09 +0900 Subject: [PATCH] ci: emit legacy-format VSAs in the embedded promote-to-prod producer [sc-19163] Mirrors chronicleprotocol/actions-workflows#40. Kyverno (1.18.1 and 1.19.0) cannot read cosign v3 new-bundle-format attestations on registries without the OCI Referrers API; ghcr serves none, so VSAs emitted by this producer verify as count 0 (kyverno#16678). The legacy sha256-.att layout verifies on both Kyverno versions (twin-kind proven under Deny). cosign pinned to the validated v3.1.3; tlog upload stays on (required). Deprecated flags: revert when Kyverno reads referrer bundles (tracked in sc-19163). --- .github/workflows/promote-to-prod.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/promote-to-prod.yaml b/.github/workflows/promote-to-prod.yaml index cf9a2dc..26dadf7 100644 --- a/.github/workflows/promote-to-prod.yaml +++ b/.github/workflows/promote-to-prod.yaml @@ -231,6 +231,10 @@ jobs: - name: Install Cosign uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 + with: + # Pin to the version the legacy-format emission below was validated with + # (mirrors chronicleprotocol/actions-workflows promote-to-prod.yaml). + cosign-release: 'v3.1.3' - name: Generate CycloneDX SBOM (attested below; never a gate) uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0 @@ -279,7 +283,13 @@ jobs: IMAGE: ${{ inputs.image }}@${{ inputs.digest }} run: | set -euo pipefail + # LEGACY storage format on purpose (2026-08-22, sc-19163): Kyverno cannot read + # cosign v3 new-bundle-format attestations on registries without the OCI Referrers + # API (ghcr has none) -- kyverno#16678. Mirrors the canonical actions-workflows + # promote-to-prod.yaml; keep byte-parallel with it. Tlog upload stays ON (required). cosign attest --yes \ + --new-bundle-format=false \ + --use-signing-config=false \ --type "https://slsa.dev/verification_summary/v1" \ --predicate vsa.json \ "${IMAGE}"