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

Syft convert from cdx.json -> syft.json -> cdx.json fails #3574

Open
henrysachs opened this issue Jan 9, 2025 · 0 comments
Open

Syft convert from cdx.json -> syft.json -> cdx.json fails #3574

henrysachs opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working needs-investigation

Comments

@henrysachs
Copy link
Contributor

What happened:

I tried to convert a cyclone dx json to syft-json and back to cyclone dx, after that i received an error from syft

[0000] ERROR failed to decode SBOM: unable to decode syft-json document: unable to find source metadata type=""

What you expected to happen:

I receive a file in the CycloneDX JSON format

Steps to reproduce the issue:

taken the example cyclonedx json from: https://github.com/CycloneDX/bom-examples/blob/master/SBOM/keycloak-10.0.2/bom.json

syft convert bom.json -o syft-json > bom-syft.json
syft convert bom-syft.json -o cyclonedx-json

Anything else we need to know?:

I already dug a bit deeper into this and its because the whole source area is empty as soon as you write "directory" into type for example everything works

Environment:

  • Output of syft version:
Application: syft
Version:    1.18.1
BuildDate:  2024-12-13T18:41:10Z
GitCommit:  5e16e5031a13f8a11057feb8544decebfc43b4ed
GitDescription: v1.18.1
Platform:   darwin/arm64
GoVersion:  go1.23.4
Compiler:   gc
  • OS (e.g: cat /etc/os-release or similar):
    MacOs 15.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-investigation
Projects
Status: Backlog
Development

No branches or pull requests

2 participants