-
-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Schema validation failed due to duplicates #1622
Comments
The project has many moving parts, so cdxgen must be invoked multiple times for each language type, and the results aggregated using the cyclonedx CLI. If you have some cycles, you can try investigating an approach to make cdxgen work with a single invocation, but it won't be easy. In general, generating a proper SBOM is an involved process. Users must be willing to invest time configuring and fine-tuning settings for maximum precision. How can they expect a tool to work magic and operate out of the box with a single invocation for arbitrary real-world projects? |
i also have this validation error, but an sbom still seems to be generated. can it be ignored? 🤔 |
@mx1up I do not think the error can be ignored, since the dependencies are listed twice and validations of the SBOM will fail when using it with other tools afterwards, i.e. SBOM utility for evaluation purposes. @prabhu since you know the codebase well as a maintainer and the error can be pinpointed to v11.1.0 as mentioned above (all previous versions work fine!). Could the changes introduced by #1567 lead to the duplication error? I did not mean to be harsh and expect the tool to work out of the box. |
Good find. @malice00, should we improve this logic to filter duplicates?
I have another angry client who reported the same issue, so back at work at 9pm just before the Valentine's Day ;) |
Signed-off-by: Prabhu Subramanian <[email protected]>
* Fixes #1622 Signed-off-by: Prabhu Subramanian <[email protected]> * Tweaks Signed-off-by: Prabhu Subramanian <[email protected]> * Bump version Signed-off-by: Prabhu Subramanian <[email protected]> * Added SecObserve to repotests Signed-off-by: Prabhu Subramanian <[email protected]> --------- Signed-off-by: Prabhu Subramanian <[email protected]>
Running the following command fails due to duplicates in the dependency for all releases after v11.0.10.
cdxgen . --profile license-compliance --required-only --no-auto-compositions -o sbom_out.cdx.json
The error message when running it in a docker container with the ubuntu:latest image on arm64:
Full SBOM here: sbom_broken.cdx.json
The error can be pinpointed to cdxgen version v11.1.0. The previous version v11.0.10 does not throw a schema validation error.
Steps to reproduce:
Run
cdxgen . --profile license-compliance --required-only --no-auto-compositions -o sbom_out.cdx.json
for cdxgen in v11.1.0 or higher against the repository containing the source code of SecObserve.Additionally, it seems odd that a npm package has a dependency on 'pkg:pypi/secobserve@latest' according to the generated SBOM.
The text was updated successfully, but these errors were encountered: