Skip to content

Is there a way to disable the new feature of detecting vulnerabilities in Go's standard packages? #6625

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

You must be logged in to vote
  1. Is there a way to disable it through a flag (or are there plans to add such flag)?

No. You need to use .trivyignore.

  1. Are there plans to use go version -m <path/to/the/binary> to try to identify if the package is actually in use?

go version -m doesn't show the standard package names. It shows 3rd party module names, though.

  1. Was it considered to instead of listing all the possible vulnerabilities, to list a kind of generic vulnerability flagging that the identified Go version is old/outdated/EOL and in the description of the issue to list all the CVEs that it's affected?

Trivy doesn't detect all possible vulnerabilities, like toolchain vulnerabilities. It detects stdlib vulnerab…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@macedogm
Comment options

@knqyf263
Comment options

Answer selected by macedogm
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