Annex I, Part II requires manufacturers to identify and document vulnerabilities and components, including drawing up a software bill of materials in a commonly used machine-readable format covering at least top-level dependencies. A repository-generated inventory may help, but it needs checking against the actual product release and build inputs. Creating an SBOM alone does not establish CRA compliance.
Source: CRA Annex I.