aquasecurity / trivy

Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
https://aquasecurity.github.io/trivy
Apache License 2.0
23.29k stars 2.3k forks source link

fix(golang): do not trim `v` prefix from versions #7711

Open knqyf263 opened 1 week ago

knqyf263 commented 1 week ago

Description

the go mod analyzer should not remove the v prefix from versions to get aligned with the go binary analyzer.

Discussed in https://github.com/aquasecurity/trivy/discussions/7709

Rutam21 commented 1 week ago

@knqyf263 I would like to work on this. Please assign this issue to me. Thanks.