From e9a6a74aa5d87d7d8bd35a3899fb612909ec9601 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Mon, 9 Nov 2026 12:40:00 +0100 Subject: [PATCH] GHA: Compliance with SBOM Check Create a SBOM based on the common SBOM workflow. --- .github/workflows/compliance.yml | 13 +++++++++++++ .github/workflows/container-image.yml | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/compliance.yml diff --git a/.github/workflows/compliance.yml b/.github/workflows/compliance.yml new file mode 100644 index 0000000..84ff083 --- /dev/null +++ b/.github/workflows/compliance.yml @@ -0,0 +1,13 @@ +name: Compliance + +on: + push: + branches: [ main ] + pull_request: {} + +permissions: + contents: read + +jobs: + sbom: + uses: Icinga/github-actions/.github/workflows/sbom.yml@sbom-init # TODO: change to main branch diff --git a/.github/workflows/container-image.yml b/.github/workflows/container-image.yml index 73a8fcb..01ce2eb 100644 --- a/.github/workflows/container-image.yml +++ b/.github/workflows/container-image.yml @@ -118,6 +118,20 @@ jobs: provenance: false sbom: false + - name: Generate Contaner image SBOM + uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3 + env: + SYFT_ENRICH: all + SYFT_SELECT_CATALOGERS: +sbom-cataloger + SYFT_SOURCE_NAME: github.com/${{ github.repository }} + SYFT_SOURCE_VERSION: ${{ github.ref_type == 'tag' && github.ref_name || github.sha }} + with: + image: oci-dir:${{ runner.temp }}/plugins-oci + format: cyclonedx-json + output-file: sbom-${{ matrix.debian_version }}.cdx.json + artifact-name: sbom-${{ matrix.debian_version }}.cdx.json + upload-release-assets: false + - name: Build test Container image uses: docker/build-push-action@v7 with: