Skip to content

Commit

Permalink
Merge pull request #2 from satta/govulncheck
Browse files Browse the repository at this point in the history
add govulncheck action
  • Loading branch information
satta committed Nov 21, 2022
2 parents 1cdcb73 + 68d5106 commit d6b93c3
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.13
go-version: ^1.18
id: go

- name: Check out code into the Go module directory
Expand All @@ -25,19 +25,18 @@ jobs:
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
go get golang.org/x/tools/cmd/cover
go get github.com/mattn/goveralls
go install golang.org/x/tools/cmd/cover@latest
go install github.com/mattn/goveralls@latest
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out ./...

- name: Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN
run: goveralls -coverprofile=coverage.out -service=circle-ci -repotoken $COVERALLS_TOKEN

- name: check for go vulnerabilities
uses: kmulvey/govulncheck-action@main
with:
packages: './...'

0 comments on commit d6b93c3

Please sign in to comment.