Skip to content

Commit

Permalink
generate SBOM in json format with bom
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <[email protected]>
  • Loading branch information
kranurag7 committed Mar 13, 2024
1 parent 42f5f8e commit dbe0ae2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ jobs:
- name: Generate SBOM CSO
shell: bash
# To-Do: generate SBOM from source after https://github.com/kubernetes-sigs/bom/issues/202 is fixed
# To-Do: format SBOM output to json after cosign v2.0 is released with https://github.com/sigstore/cosign/pull/2479
run: |
bom generate -o sbom_ci_main_cso_${{ steps.metacso.outputs.version }}-spdx.json \
bom generate --format=json -o sbom_ci_main_cso_${{ steps.metacso.outputs.version }}-spdx.json \
--image=ghcr.io/sovereigncloudstack/cso:${{ steps.metacso.outputs.version }}
- name: Attach SBOM to Container Images cso
- name: Attest SBOM to Container Images cso
run: |
cosign attest --yes --type=spdxjson --predicate sbom_ci_main_cso_${{ steps.metacso.outputs.version }}-spdx.json ghcr.io/sovereigncloudstack/cso@${{ steps.docker_build_release_cso.outputs.digest }}
Expand Down

0 comments on commit dbe0ae2

Please sign in to comment.