Skip to content

Commit

Permalink
fix Gosec Security Scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
Aoang committed Mar 18, 2022
1 parent 7a77e9a commit 4657a76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ jobs:
go-version: [1.18.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
env:
GO111MODULE: on
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Security
run: go get github.com/securego/gosec/cmd/gosec; `go env GOPATH`/bin/gosec -exclude=G104,G304 ./...
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: -exclude=G104,G304 ./...

0 comments on commit 4657a76

Please sign in to comment.