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: