diff --git a/README.md b/README.md index bb7400f3fd..a17db899e1 100644 --- a/README.md +++ b/README.md @@ -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 /:/ securego/gosec //... +docker run --rm -it -w // -v /:/ securego/gosec //... ``` +**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