From 6e5135f6eb606ddb2777fd96f145c00a0da5b46e Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Sun, 28 Apr 2019 19:39:43 +0200 Subject: [PATCH] Update README with some instructions to enable the tests and vendor folder scanning Signed-off-by: Cosmin Cojocar --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84b1dbf..4987ef0 100644 --- a/README.md +++ b/README.md @@ -114,8 +114,11 @@ $ gosec -conf config.json . ### Excluding files -gosec will ignore dependencies in your vendor directory any files -that are not considered build artifacts by the compiler (so test 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: + +```bash +gosec -tests -vendor ./... +``` ### Annotating code