Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add workaround for Golang's stdlib #72

Merged
merged 3 commits into from
Jul 1, 2024
Merged

Conversation

mrfyda
Copy link
Contributor

@mrfyda mrfyda commented Jun 29, 2024

This is a workaround for detecting vulnerabilities in the Go standard library.
It mimics the behavior of govulncheck by modifying the go.mod file to replace the go version or toolchain version directive with a require statement for stdlib.
Currently, this is only supported by Trivy for Go binaries scanning. aquasecurity/trivy#4133

@mrfyda mrfyda marked this pull request as ready for review July 1, 2024 08:00
@mrfyda mrfyda requested a review from codacy-vrhpires July 1, 2024 08:00
internal/tool/golang.go Show resolved Hide resolved
internal/tool/golang.go Show resolved Hide resolved
internal/tool/tool.go Show resolved Hide resolved
@mrfyda mrfyda force-pushed the feat/golang-stdlib branch from 42b4e27 to 4105c78 Compare July 1, 2024 14:18
@mrfyda mrfyda merged commit e687f3b into master Jul 1, 2024
8 checks passed
@mrfyda mrfyda deleted the feat/golang-stdlib branch July 1, 2024 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants