mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-30 05:43:05 -08:00
Adds a `-DWITH_SBOM=ON` CMake flag that outputs an SBOM in SPDX JSON for installed targets. The SBOM is built from various sources: - syft scans the deployment directory for binaries (+ package manager metadata if available) - vcpkg provides basic SBOM data for all packages - Qt ships its own SBOM information when installed via the online installer or built with `-DQT_GENERATE_SBOM=ON` - CMake target information for statically-linked libraries The vcpkg override triplets have been adjusted to enable building of Qt SBOMs when `--build-qt` / `-DWITH_BUILD_QT=ON` is set. The release-tool builds SBOMs by default, which can be disabled by with `--no-sbom`. The generated SPDX document is put next to the release artefact in the release directory. Building an SBOM requires Python, syft, and spdx-tools to be installed on the host. The Python generation helper and test file are entirely AI-generated and not super-pretty, but the generated SBOM document is valid and seems as complete as I can get it. Since we're not shipping the code to users, that's good enough for me.