Better Programming

Advice for programmers.

Follow publication

Member-only story

Secure Your Go Code With Vulnerability Check Tool

Stefanie Lai
Better Programming
Published in
7 min readOct 26, 2022
from Unsplash Markus Spiske

Security vulnerabilities exist in any language and any code, some are written by ourselves, but more are from the upstream dependencies, even the underlying Linux. We have discussed the security protection methods for Go and Kubernetes Image in Path to a Perfect Go Dockerfile and Image Vulnerability Scanning for Optimal Kubernetes Security, in which the security scanning was performed based on generic.

As the Go community grows, more and more open-source packages have caused more security vulnerabilities, which has raised the concern of Go officials, and then the security scanning tool Go Vulnerability Check was introduced in September 2022.

from https://go.dev/blog/vuln/architecture.png

If you are interested in this tool, just follow me, and let’s digest its internal logic and then make full use of it.

Use Go Vulnerability Check

First, let’s try it.

Install(only supported from Go 1.18).

go install golang.org/x/vuln/cmd/govulncheck@latest

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Write a response