golang binary version parsing fails if GOEXPERIMENT was enabled #6695
Closed
lyoung-confluent
started this conversation in
Bugs
Replies: 2 comments 3 replies
-
|
Should be fixed via #6696 when merged |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
I am still seeing this error with trivy v0.71: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When running trivy on a Golang binary that was compiled with GOEXPERIMENT such as
boringcryptoorloopvarthe version extraction forstdlibwill fail:This is because the returned
GoVersionincludes the additional experiment tags as part of the "version".Desired Behavior
Trivy successfully extracts the Go version and reports the vulnerabilities
Actual Behavior
Trivy fails to extract the Go version and as such does not detect/report Go
stdlibvulnerabilitiesReproduction Steps
Dockerfile(docker build -t goexperiment-test .):trivy, observe that nostdlibvulnerabilities are reported and an error is found in the output:Target
Container Image
Scanner
Vulnerability
Output Format
None
Mode
None
Debug Output
Operating System
macOS Sonoma
Version
Checklist
trivy image --resetBeta Was this translation helpful? Give feedback.
All reactions