Skip to content

Commit

Permalink
switched to spdx
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy committed Nov 27, 2023
1 parent f5ed37a commit 172889a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ jobs:
with:
scan-type: image
image-ref: ${{ env.OPERATOR_IMAGE_REPOSITORY }}:latest-${{ steps.setup-build-step.outputs.platform_os }}-${{ steps.setup-build-step.outputs.platform_arch }}
format: "cyclonedx"
output: "operator-cyclonedxsbom.json"
format: "spdx-json"
output: "operator-spdxjson.json"

- name: Prepare Distribution Artifacts
shell: bash
Expand Down Expand Up @@ -394,8 +394,8 @@ jobs:
with:
scan-type: image
image-ref: ${{ env.BUNDLE_IMAGE_REPOSITORY }}:latest-${{ steps.setup-build-step.outputs.platform_os }}-${{ steps.setup-build-step.outputs.platform_arch }}
format: "cyclonedx"
output: "bundle-cyclonedxsbom.json"
format: "spdx-json"
output: "bundle-spdxjson.json"

- name: Prepare Distribution Artifacts
shell: bash
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,15 @@ jobs:
with:
scan-type: image
image-ref: ${{ env.OPERATOR_IMAGE_REPOSITORY }}@${{ steps.build_push.outputs.digest }}
format: "cyclonedx"
output: "cyclonedx-sbom.json"
format: "spdx-json"
output: "spdx-json.json"

- name: Attach attestations for Operator Image
env:
IMAGE_URI: ${{ env.OPERATOR_IMAGE_REPOSITORY }}@${{ steps.build_push.outputs.digest }}
run: |
cosign attest --yes --type vuln --predicate cosign-vuln.json ${IMAGE_URI}
cosign attest --yes --type cyclonedx --predicate cyclonedx-sbom.json ${IMAGE_URI}
cosign attest --yes --type spdx --predicate spdx-json.json ${IMAGE_URI}
- name: Prepare Distribution Artifacts
shell: bash
Expand Down Expand Up @@ -557,15 +557,15 @@ jobs:
with:
scan-type: image
image-ref: ${{ env.BUNDLE_IMAGE_REPOSITORY }}@${{ steps.build_push.outputs.digest }}
format: "cyclonedx"
output: "cyclonedx-sbom.json"
format: "spdx-json"
output: "spdx-json.json"

- name: Attach attestations for Bundle Image
env:
IMAGE_URI: ${{ env.BUNDLE_IMAGE_REPOSITORY }}@${{ steps.build_push.outputs.digest }}
run: |
cosign attest --yes --type vuln --predicate cosign-vuln.json ${IMAGE_URI}
cosign attest --yes --type cyclonedx --predicate cyclonedx-sbom.json ${IMAGE_URI}
cosign attest --yes --type spdx --predicate spdx-json.json ${IMAGE_URI}
- name: Prepare Distribution Artifacts
shell: bash
Expand Down

0 comments on commit 172889a

Please sign in to comment.