Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit b4b8dc6

Browse files
authored
generate sbom in json format with bom (#131)
this is a bug and could have breaked our release process and this commit fixes the same. Signed-off-by: kranurag7 <[email protected]>
1 parent 856654d commit b4b8dc6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@ jobs:
8383
- name: Generate SBOM cspo
8484
shell: bash
8585
# To-Do: generate SBOM from source after https://github.com/kubernetes-sigs/bom/issues/202 is fixed
86-
# To-Do: format SBOM output to json after cosign v2.0 is released with https://github.com/sigstore/cosign/pull/2479
8786
run: |
88-
bom generate -o sbom_ci_main_cspo_${{ steps.metacspo.outputs.version }}-spdx.json \
87+
bom generate --format=json -o sbom_ci_main_cspo_${{ steps.metacspo.outputs.version }}-spdx.json \
8988
--image=ghcr.io/sovereigncloudstack/cspo:${{ steps.metacspo.outputs.version }}
9089
91-
- name: Attach SBOM to Container Images cspo
90+
- name: Attest SBOM to Container Images cspo
9291
run: |
9392
cosign attest --yes --type=spdxjson --predicate sbom_ci_main_cspo_${{ steps.metacspo.outputs.version }}-spdx.json ghcr.io/sovereigncloudstack/cspo@${{ steps.docker_build_release_cspo.outputs.digest }}
9493

0 commit comments

Comments
 (0)