mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Update README with some instruction how to run gosec as a GitHub action
Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
This commit is contained in:
parent
08202fee80
commit
3b6c3f13f1
1 changed files with 26 additions and 0 deletions
26
README.md
26
README.md
|
@ -47,6 +47,32 @@ echo "<check sum from the check sum file> gosec_vX.Y.Z_OS.tar.gz" | sha256sum -
|
||||||
|
|
||||||
gosec --help
|
gosec --help
|
||||||
```
|
```
|
||||||
|
### GitHub Action
|
||||||
|
|
||||||
|
You can run `gosec` as a GitHub action as follows:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: Run Gosec
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
GO111MODULE: on
|
||||||
|
steps:
|
||||||
|
- name: Checkout Source
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Run Gosec Security Scanner
|
||||||
|
uses: securego/gosec@master
|
||||||
|
with:
|
||||||
|
args: ./...
|
||||||
|
```
|
||||||
|
|
||||||
### Local Installation
|
### Local Installation
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue