gosec

Scans Go source code for security vulnerabilities and issues

brewmacoslinux
Try with needOr install directly
Source

About

Golang security checker

Commands

gosec

Examples

Scan current directory for security issues$ gosec ./...
Scan specific file and output as JSON$ gosec -fmt json ./main.go
Scan with detailed output and exclude test files$ gosec -verbose -exclude-dir=tests ./...