Skip to content

Commit

Permalink
fix gosec error
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed Nov 27, 2022
1 parent 1ce4713 commit 14c9840
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build-x86-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

env:
KIND_VERSION: v0.17.0
GOSEC_VERSION: "2.12.0"

jobs:
build:
Expand Down Expand Up @@ -57,10 +58,13 @@ jobs:
go install github.com/onsi/ginkgo/ginkgo@latest
make ut
- name: Install gosec
run: |
curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin 'v${{ env.GOSEC_VERSION }}'
- name: Build
run: |
go mod tidy
go install github.com/securego/gosec/cmd/gosec@latest
make release
make tar
Expand Down

0 comments on commit 14c9840

Please sign in to comment.