Skip to content

Commit

Permalink
chore: enable sbom attestation for cpu image
Browse files Browse the repository at this point in the history
Signed-off-by: Maryam Tahhan <[email protected]>
  • Loading branch information
maryamtahhan committed Feb 13, 2025
1 parent ee7dff7 commit f0b2a85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cpu-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ jobs:
artifact-name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.json
output-file: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

# - name: Generate SBOM attestation with Cosign with GitHub OIDC Token
# if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
# run: |
# cosign attest --predicate ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}:${{ matrix.LABEL }}@${{ steps.build-push-image.outputs.digest }}
- name: Generate SBOM attestation with Cosign with GitHub OIDC Token
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
run: |
cosign attest --predicate ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json --type spdxjson quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}:${{ matrix.LABEL }}@${{ steps.build-push-image.outputs.digest }}
- name: Compress SBOM
run: gzip ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
Expand Down

0 comments on commit f0b2a85

Please sign in to comment.