Image Scans: SBOM generated by trivy does not contain license information for gobinary depedencies #4430
Unanswered
seth-priya
asked this question in
Q&A
Replies: 2 comments 8 replies
-
Go binaries don't include the license information. You can see the info by "go version -m". |
Beta Was this translation helpful? Give feedback.
8 replies
-
@gerrith3 @seth-priya we hit the same issue as you some time ago. So I just wanted to provide you solution, which solved it for us. Since trivy developers have no intention to fix it inside trivy we went the way to enrich SBOM generated by trivy. We found great tool for this - parlay ( https://snyk.io/blog/introducing-parlay/ ). You simply run it in the pipe after trivy and you have SBOM with all licenses - very nice, simple and efficient solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Ran an image scan on the mimir image using
trivy image grafana/mimir:latest -f cyclonedx > mimir.sbom.out
The SBOM /Cyclodex output has the "gobinary" dependencies of mimir listed (around 180 packages in all) listed but these don't have the license info, sample entry
https://github.com/CycloneDX/cyclonedx-gomod has the capability to provide license info for gobinary dependencies
Target
Container Image
Scanner
License
Output Format
CycloneDX
Mode
Standalone
Operating System
Linux x86_64
Version
Beta Was this translation helpful? Give feedback.
All reactions