mirror of
https://github.com/securego/gosec.git
synced 2025-03-01 04:33:29 +00:00
Update README with some instructions to enable the tests and vendor folder scanning
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
parent
b49c9532a8
commit
6e5135f6eb
1 changed files with 5 additions and 2 deletions
|
@ -114,8 +114,11 @@ $ gosec -conf config.json .
|
||||||
|
|
||||||
### Excluding files
|
### Excluding files
|
||||||
|
|
||||||
gosec will ignore dependencies in your vendor directory any files
|
gosec will ignore tests files and any dependencies in your vendor directory. The scanning of these artifacts can be enabled with the following flags:
|
||||||
that are not considered build artifacts by the compiler (so test files).
|
|
||||||
|
```bash
|
||||||
|
gosec -tests -vendor ./...
|
||||||
|
```
|
||||||
|
|
||||||
### Annotating code
|
### Annotating code
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue