sonatype-nexus-community / nancy

A tool to check for vulnerabilities in your Golang dependencies, powered by Sonatype OSS Index
Apache License 2.0
562 stars 74 forks source link

Readme: Relation to govulncheck #271

Open falco467 opened 1 year ago

falco467 commented 1 year ago

https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck

And I'm trying to decide how this tool is different from Nancy and if I should use both of them, or if one fully replaces the other?

cc @bhamail / @DarthHater

adamdecaf commented 1 year ago

govulncheck looks at the AST (compiled code) to determine call paths which have known vulnerabilities. This involves compiling with a vulnerable Go's standard library or imported libraries. govulncheck uses the Go project's vulnerability database while Nancy uses Sonatype's and the open source index. Nancy inspects dependency files to look at all possible vulnerable library usage.

kishaningithub commented 1 year ago

It would be great if this was documented in the README

orsenthil commented 7 months ago

Explained it in README here https://github.com/sonatype-nexus-community/nancy/pull/277