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(report): empty Target for some SBOM files in image #8189

Open
DmitriyLewen opened this issue Dec 28, 2024 · 0 comments
Open

bug(report): empty Target for some SBOM files in image #8189

DmitriyLewen opened this issue Dec 28, 2024 · 0 comments
Labels
scan/sbom Issues relating to SBOM

Comments

@DmitriyLewen
Copy link
Contributor

Description

There are cases when Trivy can't detect filePath for Application from SBOM file in image mode.
For these images Target is empty:

~ trivy -q image mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0@sha256:c7e74bfb8704a1a538d52c18728e4d4772b44ae551b8d07053e23609807d2ece -f json --list-all-pkgs | grep Target
      "Target": "mcr.microsoft.com/dotnet/sdk:8.0-azurelinux3.0@sha256:c7e74bfb8704a1a538d52c18728e4d4772b44ae551b8d07053e23609807d2ece (azurelinux 3.0)",
      "Target": "",
...

As solution i suggest to use path to SBOM file in Application.FilePath (and Target).
But there is one problem with this:
We can show Application path or SBOM path - this can confuse users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scan/sbom Issues relating to SBOM
Projects
None yet
Development

No branches or pull requests

1 participant