Skip to content

Commit

Permalink
chore: add govulncheck and bump Go to 1.20 (#523)
Browse files Browse the repository at this point in the history
* chore: add govulncheck

Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>

* chore: bump go version 1.20

Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>

---------

Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
  • Loading branch information
rdimitrov committed Jul 25, 2023
1 parent 8efd6cd commit 7b85661
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,11 @@ jobs:
flag-name: Go-${{ matrix.go-version }}
parallel: true

golangci:
checks:
strategy:
matrix:
go-version: ${{ fromJSON(needs.get-go-versions.outputs.matrix) }}
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
needs: get-go-versions
steps:
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753
Expand All @@ -68,3 +67,8 @@ jobs:
with:
version: v1.51 # has to be pinned and thus manually updated due to https://github.com/golangci/golangci-lint-action/blob/6a290f7d5d488e1e423b0b37fe802c822ca2c08c/README.md?plain=1#L108
args: --timeout 5m --verbose
- name: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: ${{ matrix.go-version }}
go-package: ./...
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/theupdateframework/go-tuf

go 1.18
go 1.20

require (
github.com/dustin/go-humanize v1.0.1
Expand Down

0 comments on commit 7b85661

Please sign in to comment.