Skip to content

Commit e4ba96a

Browse files
committed
Update README
1 parent ec0f8ec commit e4ba96a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,12 @@ make test
147147
#### Release Build
148148

149149
Make sure you have installed the [goreleaser](https://github.com/goreleaser/goreleaser) tool and then you can release gosec as follows:
150+
151+
```
150152
git tag 1.0.0
151153
export GITHUB_TOKEN=<YOUR GITHUB TOKEN>
152154
make release
155+
```
153156

154157
The released version of the tool is available in the `dist` folder. The build information should be displayed in the usage text.
155158

@@ -175,10 +178,11 @@ You can build the docker image as follows:
175178
make image
176179
```
177180

178-
Now you can run the gosec tool in a container against your local workspace:
181+
You can run the `gosec` tool in a container against your local Go project. You just have to mount the project in the
182+
`GOPATH` of the container:
179183

180184
```
181-
docker run -it -v <YOUR LOCAL WORKSPACE>:/workspace gosec /workspace
185+
docker run -it -v $GOPATH/src/<YOUR PROJECT PATH>:/go/src/<YOUR PORJECT PATH> securego/gosec /go/src/<YOUR PROJECT PATH>
182186
```
183187

184188
#### Generate TLS rule

0 commit comments

Comments
 (0)