A machine is a registry project of kind `product`, made of its targets:
in-house ones and components bought in (#1025). GET
/api/v1/projects/{id}/sbom returns its CycloneDX 1.6 SBOM: the machine as
a device, each part with its supplier (the workspace for one made
in-house) and the supplier's version, the parts' components once each,
and a graph of the machine depending on its parts and each part on its
own components. Part refs are built from target ids, so names never
collide. The supplier's product entry is the part, not a component of
it; archived targets are left out.
The vulnerability listing of the target SBOM moves into its own helper,
shared by both; the CycloneDX schema test helpers move to tests/common.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9