From 166e4f5f45ca9a9affefba3390dcd44e984490a6 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Mon, 31 Aug 2020 11:14:04 +0200 Subject: [PATCH] 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 --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bb7400f..a17db89 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