Skip to content

Commit

Permalink
Add govulncheck to Go Tests workflow (#28226)
Browse files Browse the repository at this point in the history
* Add govulncheck to Go Tests workflow

* Add manual trigger to go tests

* Broaden govulncheck
  • Loading branch information
jrmccluskey committed Sep 12, 2023
1 parent e2ce6e7 commit 846a1ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/go_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ on:
branches: ['master', 'release-*']
tags: ['v*']
paths: ['sdks/go/pkg/**', 'sdks/go.mod', 'sdks/go.sum', 'sdks/go/container/*', 'sdks/java/container/*', 'sdks/python/container/*', 'sdks/typescript/container/*']
workflow_dispatch:
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.issue.number || github.event.pull_request.head.label || github.sha || github.head_ref || github.ref }}-${{ github.event.schedule || github.event.comment.body || github.event.sender.login}}'
Expand Down Expand Up @@ -65,3 +66,8 @@ jobs:
go install "honnef.co/go/tools/cmd/staticcheck@2023.1.3"
cd sdks/go/pkg/beam
$(go env GOPATH)/bin/staticcheck ./...
- name: Run govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
cd sdks
$(go env GOPATH)/bin/govulncheck ./...

0 comments on commit 846a1ab

Please sign in to comment.