Skip to content

Commit

Permalink
Retrieve go version from go mod
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Jun 12, 2024
1 parent 2d87226 commit e186712
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/govulncheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ on:
jobs:
govulncheck:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-input: 1.22
go-package: ./...
go-version-file: 'go.mod'
cache-dependency-path: 'go.sum'
check-latest: true
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
shell: bash
- name: Run govulncheck
run: govulncheck ./...
shell: bash
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/exoscale/packer-plugin-exoscale

go 1.20
go 1.22

require (
github.com/aws/aws-sdk-go-v2 v1.18.0
Expand Down

0 comments on commit e186712

Please sign in to comment.