name: SBOM # Generates a Software Bill of Materials using Syft. # Required for Series-A supply-chain diligence. on: push: branches: [main] workflow_dispatch: release: types: [published] permissions: contents: write jobs: sbom: name: Generate SBOM runs-on: ubuntu-latest steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Install Syft run: | curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin - name: Generate CycloneDX SBOM run: | syft . --output cyclonedx-json=sbom.cyclonedx.json echo "SBOM generated:" wc -l sbom.cyclonedx.json - name: Upload SBOM artifact uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: name: sbom path: sbom.cyclonedx.json retention-days: 30