diff options
author | Özgür Kesim <oec@codeblau.de> | 2023-06-20 12:28:42 +0200 |
---|---|---|
committer | Özgür Kesim <oec@codeblau.de> | 2023-06-20 12:28:42 +0200 |
commit | f8c6f74e2fa4d0fbf007446b3454f08348640148 (patch) | |
tree | cd0f6d4660bacd302117b24f935e8885155abeb7 /README.md | |
parent | e009cb4234f3fe70cce7dd4c3af921da962ecb52 (diff) |
update README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +# Tool to find dangerous imports in go code + +The tool checks for imports for a given `go.mod` file that + +- uses `unsafe` +- uses cgo +- import `/net/http/pprof` + +The checks are performed transitively, following dependencies. + + +# Parameters + +``` +Usage of ./goosebumps: + -cc + check for imports of cgo + -ci + check for implementations of init() + -cp + check for imports of net/http/pprof + -cu + check for imports of unsafe + -exempt string + domains exempt from the search, seperated by space (default "golang.org") + -mod string + go.mod file (default "go.mod") + -modcache string + location of go mod cache (default "$GOROOT/pkg/mod") +``` |