Skip to content

Commit 8fb3c13

Browse files
authored
switch to SPDX SBOM (#74)
Signed-off-by: chipzoller <chipzoller@gmail.com>
1 parent 8bd2b74 commit 8fb3c13

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ jobs:
5555
run: |
5656
gcloud --quiet auth configure-docker
5757
58-
- name: Publish image and SBOM (CycloneDX)
58+
- name: Publish image and SBOM (SPDX)
5959
id: ko-build
6060
# IMAGE will be in format <registry>/<org>/<repo>@<digest> ex ghcr.io/johndoe/redis@sha256:1b85db3f261af51914867eeda20a25bedf72fa406619bcdd60f0658f27b2722d
6161
run: |
6262
tag=$(echo ${{ github.ref }} | cut -c11-)
6363
export VERSION=$tag
6464
export COMMIT_HASH=${{ github.sha }}
65-
IMAGE=$(ko build ./cmd/diskautoscaler --bare -t latest -t ${{ github.sha }} -t ${tag} --sbom=cyclonedx --sbom-dir=./)
65+
IMAGE=$(ko build ./cmd/diskautoscaler --bare -t latest -t ${{ github.sha }} -t ${tag} --sbom=spdx --sbom-dir=./)
6666
echo "The image generated is: $IMAGE"
6767
echo "## Image summary" >> $GITHUB_STEP_SUMMARY
6868
echo "Built image: $IMAGE" >> $GITHUB_STEP_SUMMARY
6969
echo "IMAGE=$IMAGE" >> $GITHUB_ENV
7070
echo "image=$IMAGE" >> $GITHUB_OUTPUT
7171
echo "Renaming output SBOM file to sbom.json."
72-
for file in *.cyclonedx.json; do
72+
for file in *.spdx.json; do
7373
mv -- "$file" "sbom.json"
7474
break # Only rename the first file
7575
done
@@ -215,7 +215,7 @@ jobs:
215215
216216
- name: Attest SBOM
217217
run: |
218-
cosign attest --predicate sbom.json --type cyclonedx ${{ env.IMAGE }} -y
218+
cosign attest --predicate sbom.json --type spdxjson ${{ env.IMAGE }} -y
219219
echo "Image SBOM attested: :heavy_check_mark:" >> $GITHUB_STEP_SUMMARY
220220
221221
- name: Attest Scan

0 commit comments

Comments
 (0)