github TekWizely/pre-commit-golang v0.8.2
Support for gosec - v0.8.2

latest releases: v1.0.0-rc.1, v1.0.0-beta.5, v1.0.0-beta.4...
3 years ago

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

Don't miss a new pre-commit-golang release

NewReleases is sending notifications on new releases.