goosebumps/README.md

31 lines
661 B
Markdown
Raw Normal View History

2023-06-20 12:28:42 +02:00
# Tool to find dangerous imports in go code
The tool checks for imports for a given `go.mod` file that
2023-06-20 12:35:23 +02:00
- use `unsafe`
- use cgo
2023-06-20 12:28:42 +02:00
- 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
2023-06-20 12:34:24 +02:00
location of go mod cache (default "$GOPATH/pkg/mod")
2023-06-20 12:28:42 +02:00
```