SBOM Signal

Guide · Bitbucket Pipelines

Generate an SBOM in Bitbucket Pipelines

One Bitbucket Pipelines configuration: on every release it builds a CycloneDX SBOM of your project with Syft, the open-source SBOM generator, and optionally sends it to SBOM Signal, which watches it for actively exploited vulnerabilities.

1. The configuration

File: bitbucket-pipelines.yml (add under pipelines)

pipelines:
  tags:
    '*':
      - step:
          name: SBOM
          image: alpine:3.20
          script:
            - apk add --no-cache curl
            - curl -sSfL https://get.anchore.io/syft | sh -s -- -b /usr/local/bin
            - syft dir:. -o cyclonedx-json=sbom.cdx.json
            # Optional: send it to SBOM Signal for continuous monitoring
            - |
              curl --fail-with-body -sS -X POST \
                "https://jkinmuggshmnsuwahnfj.supabase.co/functions/v1/sbom-intake?version=${BITBUCKET_TAG}&released_on=$(date -u +%F)" \
                -H "x-upload-key: ${SBOM_SIGNAL_KEY}" \
                -H "Content-Type: application/json" \
                --data-binary @sbom.cdx.json
          artifacts:
            - sbom.cdx.json
  • The step runs for every tag; $BITBUCKET_TAG is used as the version.

2. The upload key (only for sending to SBOM Signal)

Create an upload key in the SBOM Signal panel (Connect). The key can only send SBOMs for one product and cannot read anything. Store it as a secret: Repository settings, Pipelines, Repository variables. Name SBOM_SIGNAL_KEY, tick Secured.

Without the optional step you still get a CycloneDX SBOM for every release, which is what the CRA documentation will need.

3. Electron or other apps that ship devDependencies

Syft leaves out npm devDependencies by default. If your product ships a package declared there, such as electron, add the environment variable SYFT_JAVASCRIPT_INCLUDE_DEV_DEPENDENCIES=true to the step that runs Syft. See the Electron guide.

Why an SBOM matters for CRA Article 14

Since 11 September 2026, a manufacturer that becomes aware of an actively exploited vulnerability in its product must send an early warning to ENISA within 24 hours and a notification within 72 hours (Regulation (EU) 2024/2847, Art. 14). You can only react in time if you know which components and versions each release contains. That list is the SBOM. From 11 December 2027 an SBOM is also part of the required documentation (Annex I, Part II).

More: the reporting deadlines · what an SBOM is · does the CRA apply to you?

Next

  • Check it now: drop the SBOM into the free exploited check to see if anything in it is being attacked today.
  • Keep watching every release: SBOM Signal checks every supported version around the clock and alerts you with the deadlines and ENISA drafts ready. See the panel · Free pilot

Not legal advice. Commands checked with Syft 1.57.2 on 28 November 2026.