Install

Works with Drupal: ^11.3 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 1006.97 KB
MD5: cef5a85e3e15f7685d82c26f249efd06
SHA-1: 4e58e6f954ecb8603d5485570c9eeff03e916f20
SHA-256: 509b3122600ccc34ed0a15e256722412263ceddcf47f2bfef49779a894e3990c
Download zip 1.17 MB
MD5: bfeeb7fab1cbbe594a1d3d275b4ab1a6
SHA-1: b3604d29eaf9da8156e9ea77c3bdfece597639a5
SHA-256: 0f724466839ae9b0dc09093ce4294a9067dd18e21559940c2bbad06e3b00cf85

Release notes

This beta adds bin/drubom-scan, which builds the SBOM of a Drupal codebase in CI or on another host, without running any of its code.

New

  • Scan outside the site: php bin/drubom-scan --root /path/to/project --output sbom.spdx.json, run from a separate DruBOM checkout, reads the Composer, Drupal and npm metadata files and writes an SPDX 3.0.1 document. It never loads settings.php, the Composer autoloader or any other PHP file of the codebase, and never connects to the database. Exit codes: 0 written, 2 written with incomplete coverage, 1 failed.
  • When to use which: the module is monitoring for a site you trust; the scan is for an SBOM that must not depend on trusting the site, such as one for an auditor or a customer. The README explains the difference and has GitLab CI and GitHub Actions examples.

Changed

  • Snapshot schema: installed state, default and administration themes and the site UUID can be unknown, as they are in a scan. Snapshots taken in the site are unchanged.
  • Code limits: CI now fails on functions above a cyclomatic complexity of 20 and on unused code.

Upgrading

No update hooks. Clear caches after updating.

Created by: paolomainardi
Created on: 1 Nov 2026 at 21:06 UTC
Last updated: 1 Nov 2026 at 21:06 UTC
Bug fixes
New features

Other releases