Skip to content

Commit afc6026

Browse files
authored
fix: use cosign --bundle flag for SBOM signing (#213)
cosign v2+ deprecated --output-signature and --output-certificate in favor of --bundle. The deprecated flags are silently ignored under the new bundle format, causing 'create bundle file: open : no such file or directory' because no --bundle path is provided. Switch to --bundle and update the release asset list accordingly. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent f625fd8 commit afc6026

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ jobs:
207207
shell: bash -Eeuo pipefail -x {0}
208208
run: |
209209
cosign sign-blob --yes \
210-
--output-signature sbom.spdx.json.sig \
211-
--output-certificate sbom.spdx.json.cert \
210+
--bundle sbom.spdx.json.bundle \
212211
sbom.spdx.json
213212
214213
- name: Generate install manifest and CRDs bundle
@@ -226,8 +225,7 @@ jobs:
226225
dist/install.yaml
227226
dist/crds.yaml
228227
sbom.spdx.json
229-
sbom.spdx.json.sig
230-
sbom.spdx.json.cert
228+
sbom.spdx.json.bundle
231229
232230
# Krew manifest update runs last with continue-on-error so a Krew
233231
# failure never blocks Docker images, signatures, or provenance.

0 commit comments

Comments
 (0)