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

bug(sbom): multiple Results for one package with root relationship for sbom mode #8143

Closed
DmitriyLewen opened this issue Dec 20, 2024 Discussed in #7169 · 0 comments · Fixed by #8144
Closed

bug(sbom): multiple Results for one package with root relationship for sbom mode #8143

DmitriyLewen opened this issue Dec 20, 2024 Discussed in #7169 · 0 comments · Fixed by #8144
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/sbom Issues relating to SBOM

Comments

@DmitriyLewen
Copy link
Contributor

Description

For sbom mode Trivy creates 2 Results for one Application (if Package has Root relationship)
e.g.:

➜  ./trivy -q rootfs -f cyclonedx -o report.cdx.json ./pkg/dependency/parser/golang/binary/testdata/test.elf
➜  ./trivy -q sbom -f json --list-all-pkgs  ./report.cdx.json | grep Target -A 2                            
      "Target": "",
      "Class": "lang-pkgs",
      "Type": "gobinary",
--
      "Target": "test.elf",
      "Class": "lang-pkgs",
      "Type": "gobinary",

Discussed in #7169

@DmitriyLewen DmitriyLewen added the kind/bug Categorizes issue or PR as related to a bug. label Dec 20, 2024
@DmitriyLewen DmitriyLewen self-assigned this Dec 20, 2024
@DmitriyLewen DmitriyLewen added the scan/sbom Issues relating to SBOM label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. scan/sbom Issues relating to SBOM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant