Support for gosec - v0.8.2
Release v0.8.2
Adds support for the gosec security checker
go-sec
Inspects source code for security problems by scanning the Go AST.
Hook ID | Description |
---|---|
go-sec-mod |
Run 'cd $(mod_root $FILE); gosec [$ARGS] ./...' for each staged .go file |
go-sec-pkg |
Run 'gosec [$ARGS] ./$(dirname $FILE)' for each staged .go file |
go-sec-repo-mod |
Run 'cd $(mod_root); gosec [$ARGS] ./...' for each module in the repo |
go-sec-repo-pkg |
Run 'gosec [$ARGS] ./...' in repo root folder |
Install
go get github.com/securego/gosec/v2/cmd/gosec
Help
- https://github.com/securego/gosec#usage
gosec (no args)