Skip to content
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

Merge command corrupts resulting SBOM #219

Closed
kkovaletp opened this issue Mar 19, 2022 · 2 comments · Fixed by CycloneDX/cyclonedx-dotnet-library#199 · May be fixed by CycloneDX/cyclonedx-dotnet-library#245
Closed

Merge command corrupts resulting SBOM #219

kkovaletp opened this issue Mar 19, 2022 · 2 comments · Fixed by CycloneDX/cyclonedx-dotnet-library#199 · May be fixed by CycloneDX/cyclonedx-dotnet-library#245

Comments

@kkovaletp
Copy link

kkovaletp commented Mar 19, 2022

I've merged 2 SBOMs, but found that resulting SBOM doesn't contain metadata.component from original SBOMs.
Executed command:
cyclonedx-cli merge --input-files ${NGINX_REPORTS}/Details/Anchore-SBOM.xml ${NGINX_REPORTS}/Details/CI-SBOM.xml --output-file ${NGINX_REPORTS}/Details/SBOM-merged.xml

Here is what I see at the end of the SBOM-merged.xml:

    <component type="library" bom-ref="ac6e20ae-da71-40c0-aa23-697d76d5fad3">
      <author>William Turner</author>
      <name>pyxlsb</name>
      <version>1.0.8</version>
      <licenses>
        <expression>LGPLv3+</expression>
      </licenses>
      <purl>pkg:pypi/pyxlsb@1.0.8</purl>
    </component>
  </components>
</bom> <expression>LGPLv3+</expression>
      </licenses>
      <purl>pkg:pypi/pyxlsb@1.0.8</purl>
    </component>
  </components>
</bom>
@coderpatros
Copy link
Member

Is this a duplicate of #218?

@kkovaletp
Copy link
Author

No, it is not. #218 is about metadata section and this one is about end of the resulting file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants