Skip to content

Commit

Permalink
chore: do attestation earlier
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 fb05304 commit 26ca90d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/amd-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ jobs:
artifact-name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.json
output-file: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

- name: Generate SBOM attestation
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/attest-sbom@v2
with:
subject-name: quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}
subject-digest: ${{ steps.build-push-image.outputs.digest }}
sbom-path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
push-to-registry: true

- name: Compress SBOM
run: gzip ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

Expand All @@ -106,12 +115,3 @@ jobs:
name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json.gz
path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json.gz
retention-days: 1

- name: Generate SBOM attestation
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/attest-sbom@v2
with:
subject-name: quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}
subject-digest: ${{ steps.build-push-image.outputs.digest }}
sbom-path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
push-to-registry: true
18 changes: 9 additions & 9 deletions .github/workflows/cpu-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@ jobs:
artifact-name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.json
output-file: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

- name: Generate SBOM attestation
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/attest-sbom@v2
with:
subject-name: quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}
subject-digest: ${{ steps.build-push-image.outputs.digest }}
sbom-path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
push-to-registry: true

- name: Compress SBOM
run: gzip ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

Expand All @@ -106,12 +115,3 @@ jobs:
name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json.gz
path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json.gz
retention-days: 1

- name: Generate SBOM attestation
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/attest-sbom@v2
with:
subject-name: quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}
subject-digest: ${{ steps.build-push-image.outputs.digest }}
sbom-path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
push-to-registry: true
18 changes: 9 additions & 9 deletions .github/workflows/image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@ jobs:
artifact-name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.json
output-file: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

- name: Generate SBOM attestation
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/attest-sbom@v2
with:
subject-name: quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}
subject-digest: ${{ steps.build-push-image.outputs.digest }}
sbom-path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
push-to-registry: true

- name: Compress SBOM
run: gzip ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json

Expand All @@ -108,12 +117,3 @@ jobs:
name: sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json.gz
path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json.gz
retention-days: 1

- name: Generate SBOM attestation
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: actions/attest-sbom@v2
with:
subject-name: quay.io/triton-dev-containers/${{ matrix.IMAGE_NAME }}
subject-digest: ${{ steps.build-push-image.outputs.digest }}
sbom-path: ./sbom-${{ matrix.IMAGE_NAME }}-${{ matrix.LABEL }}.spdx.json
push-to-registry: true

0 comments on commit 26ca90d

Please sign in to comment.