-
Notifications
You must be signed in to change notification settings - Fork 314
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
CycloneDX SBOM files (XML,JSON) are empty for packages with empty licenses #8857
Comments
I can't reproduce this with current ORT |
What makes you believe so if you only tried version 22.8? Edit: Anyway, indeed ORT 22.6 is the version where we switched from CycloneDX Java library major version 8 to 9. But our tests pass(ed). |
As @nnobelis noted on Slack, this could be related to CycloneDX/cyclonedx-core-java#439. |
This should work around [1] and resolves #8857. [1]: CycloneDX/cyclonedx-core-java#439 Signed-off-by: Sebastian Schuberth <[email protected]>
Nice to read that you are on the right track. I could reproduce the bug with ort cli 26.0.0. If it helps, I can attach my used evaluation-result.yml here. |
This should work around [1] and resolves #8857. [1]: CycloneDX/cyclonedx-core-java#439 Signed-off-by: Sebastian Schuberth <[email protected]>
This works around [1] and resolves #8857. [1]: CycloneDX/cyclonedx-core-java#439 Signed-off-by: Sebastian Schuberth <[email protected]>
This works around [1] and resolves #8857. [1]: CycloneDX/cyclonedx-core-java#439 Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth, I have tested it with your ghcr.io/oss-review-toolkit/ort:main image. xml format is generated now, but json leads to an exception and stays empty.
|
Describe the bug
Since Upgrading to ORT v22.8, SBOM files are empty for NPM (and NuGet) projects. This happens silently, no exit code is thrown.
To Reproduce
Create a NPM Project and install official and company dependencies, all proxied by a repo manager. The resulting ORT report is empty for CycloneDX JSON and XML files.
Steps to reproduce the behavior:
evaluation-result.yml:
SBOM files are empty.
BTW: Setting the concluded_license for a company dependency without a defined license (="NONE"), the SBOM files gets generated with content - but not for a company dependency with a defined license as above.
Expected behavior
SBOM files have content like with ORT v22.5 - I think the bug comes with v22.6.
Console / log output
Environment
Output of the
ort requirements
command:And specify (relevant parts of) your ORT configuration (
config.yml
):The text was updated successfully, but these errors were encountered: