Skip to content

Golang component version format differs from different scanning methods when generating an SBOM #7709

Closed Answered by knqyf263
dpkano asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your report. As discussed here, we're unsure whether the v prefix should be included in SBOM regarding the golang ecosystem, but it must be consistent in Trivy.

ver := strings.TrimPrefix(m.Mod.Version, "v")

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@knqyf263
Comment options

Answer selected by dpkano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
triage/support Indicates an issue that is a support question.
2 participants