SBOM Signal

Guide · GitLab CI

Generate an SBOM in GitLab CI

One GitLab CI 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: .gitlab-ci.yml (add the job)

sbom:
  stage: deploy
  image: alpine:3.20
  rules:
    - if: $CI_COMMIT_TAG
  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=${CI_COMMIT_TAG}&released_on=$(date -u +%F)" \
        -H "x-upload-key: ${SBOM_SIGNAL_KEY}" \
        -H "Content-Type: application/json" \
        --data-binary @sbom.cdx.json
  artifacts:
    paths: [sbom.cdx.json]
    expire_in: never
  • The job runs only for tags ($CI_COMMIT_TAG), which is used as the version. The SBOM is kept as a job artifact.
  • Syft is installed with Anchore's official install script. To pin a version, append it: sh -s -- -b /usr/local/bin v1.57.2.

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: Settings, CI/CD, Variables, Add variable. Key SBOM_SIGNAL_KEY, Masked. If you also tick Protected, protect your release tags (Settings, Repository, Protected tags), otherwise the job cannot read it.

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.