Skip to content

Commit b0fb0bb

Browse files
committed
install gosec
1 parent 4b42cbb commit b0fb0bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/presubmit.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ jobs:
5858
steps:
5959
- name: Checkout
6060
uses: actions/checkout@v3
61+
- name: Setup Go Version
62+
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
63+
- uses: actions/setup-go@v4
64+
with:
65+
go-version: ${{ env.GO_VERSION }}
66+
cache-dependency-path: "**/go.sum"
67+
- name: Install `gosec`
68+
run: go install github.com/securego/gosec/v2/cmd/gosec@latest
6169
- name: Run Gosec Security Scanner
6270
uses: securego/gosec@master
6371
with:

0 commit comments

Comments
 (0)