Skip to content

Commit

Permalink
build: run govulncheck with go version from build image (#2931)
Browse files Browse the repository at this point in the history
  • Loading branch information
hairyhum committed Jul 15, 2024
1 parent 80ef874 commit e768225
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/govulncheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ jobs:
steps:
- name: 'Checkout Repository'
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
## Go version from build image is used in the govulncheck step
- name: 'Get go version from build image'
id: go_version
run: |
version=$(docker run ghcr.io/kanisterio/build go version | { read _ _ v _; echo ${v#go}; })
echo "go_version=$version" >> "$GITHUB_OUTPUT"
- id: govulncheck
name: 'Govulncheck'
uses: golang/govulncheck-action@dd0578b371c987f96d1185abb54344b44352bd58 # v1.0.3
continue-on-error: ${{ github.event_name == 'pull_request' }}
with:
repo-checkout: false
cache: false
go-version-file: go.mod
go-version-input: ${{ steps.go_version.outputs.go_version }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/kanisterio/kanister

go 1.22

toolchain go1.22.2
toolchain go1.22.4

replace (
github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.4.1
Expand Down

0 comments on commit e768225

Please sign in to comment.