Skip to content

Commit

Permalink
Enable SBOM generation for Docker images (#2547)
Browse files Browse the repository at this point in the history
This PR attaches
[SBOMs](https://docs.docker.com/build/ci/github-actions/attestations/#sbom)
to all new images pushed to Docker Hub.
  • Loading branch information
williamjallen authored Nov 6, 2024
1 parent 6da3b2f commit e9004f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-latest-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash:latest"
target: cdash
cache-from: type=gha
Expand All @@ -42,6 +43,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash:latest-ubi"
target: cdash
build-args: |
Expand All @@ -64,6 +66,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash-worker:latest"
target: cdash-worker
cache-from: type=gha
Expand All @@ -84,6 +87,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash-worker:latest-ubi"
target: cdash-worker
build-args: |
Expand All @@ -106,6 +110,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash:testing"
target: cdash
build-args: |
Expand All @@ -128,6 +133,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash:testing-ubi"
target: cdash
build-args: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash:${{ github.ref_name }}"
target: cdash
cache-from: type=gha
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
context: .
platforms: linux/amd64,linux/arm64
push: true
sbom: true
tags: "kitware/cdash:${{ github.ref_name }}-ubi"
target: cdash
build-args: |
Expand Down

0 comments on commit e9004f7

Please sign in to comment.