File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 48
48
- name : Install Bom
49
49
shell : bash
50
50
run : |
51
- curl -L https://github.com/kubernetes-sigs/bom/releases/download/v0.4.1 /bom-linux- amd64 -o bom
51
+ curl -L https://github.com/kubernetes-sigs/bom/releases/download/v0.6.0 /bom-amd64-linux -o bom
52
52
sudo mv ./bom /usr/local/bin/bom
53
53
sudo chmod +x /usr/local/bin/bom
54
54
@@ -76,22 +76,19 @@ jobs:
76
76
cache-to : type=gha, mode=max, scope=${{ github.workflow }}
77
77
78
78
- name : Sign Container Images
79
- env :
80
- COSIGN_EXPERIMENTAL : " true"
81
79
run : |
82
80
cosign sign --yes ghcr.io/syself/caph@${{ steps.docker_build_release.outputs.digest }}
83
81
84
82
- name : Generate SBOM
85
83
shell : bash
86
84
# To-Do: generate SBOM from source after https://github.com/kubernetes-sigs/bom/issues/202 is fixed
87
- # To-Do: format SBOM output to json after cosign v2.0 is released with https://github.com/sigstore/cosign/pull/2479
88
85
run : |
89
- bom generate -o sbom_ci_main_caph_${{ steps.meta.outputs.version }}. spdx \
86
+ bom generate --format=json - o sbom_ci_main_caph_${{ steps.meta.outputs.version }}- spdx.json \
90
87
--image=ghcr.io/syself/caph:${{ steps.meta.outputs.version }}
91
88
92
89
- name : Attach SBOM to Container Images
93
90
run : |
94
- cosign attach sbom --sbom sbom_ci_main_caph_${{ steps.meta.outputs.version }}. spdx ghcr.io/syself/caph@${{ steps.docker_build_release.outputs.digest }}
91
+ cosign attest --yes --type=spdxjson --predicate sbom_ci_main_caph_${{ steps.meta.outputs.version }}- spdx.json ghcr.io/syself/caph@${{ steps.docker_build_release.outputs.digest }}
95
92
96
93
- name : Sign SBOM Images
97
94
env :
You can’t perform that action at this time.
0 commit comments