Re:Vulnerability Management for Go
by preseinger on Tuesday September 06, 2022 @07:17PM
(#32744398)
The newest from go.sum isn't reliably the version used in the dep graph. The only way to get that information reliably is via go list. Unfortunately.
Oh, you are totally right. I read that in the GitLab issue tracking their version of the problem and totally forgot that’s where they landed.
Also don't forget that more than one version of a dependency might be compiled into your application!
Re:Vulnerability Management for Go
by preseinger on Thursday September 08, 2022 @03:42PM
(#32770985)
Only one major version. And go considers different major versions to be different dependencies.
not true for go
Probably the best would be to take the newest from go.sum. That’s what some scanners are doing now.
Filed bugs with 2 vendors over this though.