Skip to content

Commit 160aec7

Browse files
committed
ci: generate SBOM for container images
1 parent 676dd36 commit 160aec7

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/artifacts.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ permissions:
2626
contents: read
2727

2828
jobs:
29-
container-image:
30-
name: Container image
29+
openmeter-container-image:
30+
name: Openmeter Container image
3131
runs-on: ubuntu-latest
3232

3333
permissions:
@@ -88,6 +88,14 @@ jobs:
8888
push: ${{ inputs.publish }}
8989
save: true
9090
project: ${{ vars.DEPOT_PROJECT }}
91+
sbom: true
92+
sbom-dir: ./sbom-output
93+
94+
- name: Upload SBOM directory as artifact
95+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
96+
with:
97+
name: "[${{ github.job }}] SBOM"
98+
path: ./sbom-output
9199

92100
- name: Set image ref
93101
id: image-ref
@@ -186,6 +194,14 @@ jobs:
186194
push: ${{ inputs.publish }}
187195
save: true
188196
project: ${{ vars.DEPOT_PROJECT }}
197+
sbom: true
198+
sbom-dir: ./sbom-output
199+
200+
- name: Upload SBOM directory as artifact
201+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
202+
with:
203+
name: "[${{ github.job }}] SBOM"
204+
path: ./sbom-output
189205

190206
- name: Set image ref
191207
id: image-ref

0 commit comments

Comments
 (0)