Skip to content

Commit

Permalink
Update README file with some more details required to run successfull…
Browse files Browse the repository at this point in the history
…y 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 <[email protected]>
  • Loading branch information
Cosmin Cojocar committed Sep 1, 2020
1 parent f5cc32a commit 166e4f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 166e4f5

Please sign in to comment.