Skip to content

Commit eae0ddc

Browse files
committed
Make SBOM optional
1 parent c9124a9 commit eae0ddc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ on:
3838
type: boolean
3939
required: false
4040
default: true
41+
sbom:
42+
description: Generate SBOM? (Slow)
43+
type: boolean
44+
required: false
45+
default: false
4146
push-dirty:
4247
description: Push scanned images that have critical vulnerabilities?
4348
type: boolean
@@ -252,7 +257,7 @@ jobs:
252257
run: if [ $(wc -l < ${{ matrix.distro.name }}-${{ matrix.distro.release }}-container-images) -le 1 ]; then exit 1; fi
253258

254259
- name: Scan built container images
255-
run: src/kayobe-config/tools/scan-images.sh ${{ matrix.distro.name }}-${{ matrix.distro.release }} ${{ steps.write-kolla-tag.outputs.kolla-tag }}
260+
run: src/kayobe-config/tools/scan-images.sh ${{ matrix.distro.name }}-${{ matrix.distro.release }} ${{ steps.write-kolla-tag.outputs.kolla-tag }} ${{ inputs.sbom && '--sbom'}}
256261

257262
- name: Move image scan logs to output artifact
258263
run: mv image-scan-output image-build-logs/image-scan-output

0 commit comments

Comments
 (0)