x/vuln: respect GOPRIVATE env variable #55105
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
vulncheck or vulndb
Issues for the x/vuln or x/vulndb repo
x/vuln
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce at the latest version of golang.org/x/vuln?
Yes, reproduced on latest
govulncheck
fromgo install golang.org/x/vuln/cmd/govulncheck@latest
.Actually, not from tool, but codebase.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Walked through code in
https://github.com/golang/vuln/blob/master/cmd/govulncheck/main.go
, searched for usage ofGOPRIVATE
env variable and found nothing.What did you expect to see?
Expected this tool to respect
GOPRIVATE
env variable and not run checks of dependencies with domains in this variable, like checksum checks. Don't want to exposure domains and URL-structure of deps.From
go help environment
:What did you see instead?
Nothing, but it's interesting to listen for opinion on this situation. Should the tool scan all deps or not? Will be there a way to exclude some dependencies?
The text was updated successfully, but these errors were encountered: