mirror of
https://github.com/securego/gosec.git
synced 2024-12-24 03:25:53 +00:00
Update README file with some more details required to run successfully a scan with the docker image
The current working directory needs to be specified in the docker run option in order for gosec to download the dependencies defined in the go module file. Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
parent
f5cc32a320
commit
166e4f5f45
1 changed files with 2 additions and 1 deletions
|
@ -304,8 +304,9 @@ You can run the `gosec` tool in a container against your local Go project. You o
|
|||
into a volume as follows:
|
||||
|
||||
```bash
|
||||
docker run -it -v <YOUR PROJECT PATH>/<PROJECT>:/<PROJECT> securego/gosec /<PROJECT>/...
|
||||
docker run --rm -it -w /<PROJECT>/ -v <YOUR PROJECT PATH>/<PROJECT>:/<PROJECT> securego/gosec /<PROJECT>/...
|
||||
```
|
||||
**Note:** the current working directory needs to be set with `-w` option in order to get successfully resolved the dependencies from go module file
|
||||
|
||||
### Generate TLS rule
|
||||
|
||||
|
|
Loading…
Reference in a new issue