Skip to content

Commit 2e0ce79

Browse files
committed
Bump govulncheck version to 1.1.0
This commit will bump govulncheck version 1.0.1 -> 1.1.0 Additionally, handle govulncheck exit code returned It will handle the govulncheck exit code returned which returning 3 instead of 0 with the new v1.1.0 by adding `|| true` so that the verify job does not fail but logs the go vulnerability found. Signed-off-by: ArkaSaha30 <[email protected]>
1 parent 027f346 commit 2e0ce79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/verify-govulncheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ kube::util::ensure_clean_working_dir
2727
# This sets up the environment, like GOCACHE, which keeps the worktree cleaner.
2828
kube::golang::setup_env
2929

30-
go install golang.org/x/vuln/cmd/govulncheck@v1.0.1
30+
go install golang.org/x/vuln/cmd/govulncheck@v1.1.0
3131

3232
# KUBE_VERIFY_GIT_BRANCH is populated in verify CI jobs
3333
BRANCH="${KUBE_VERIFY_GIT_BRANCH:-master}"
@@ -40,9 +40,9 @@ git worktree add -f "${WORKTREE}" "${BRANCH}"
4040
# Clean up the copy on exit
4141
kube::util::trap_add "git worktree remove -f ${WORKTREE}" EXIT
4242

43-
govulncheck -scan module ./... > "${KUBE_TEMP}/head.txt"
43+
govulncheck -scan package ./... > "${KUBE_TEMP}/head.txt" || true
4444
pushd "${WORKTREE}" >/dev/null
45-
govulncheck -scan module ./... > "${KUBE_TEMP}/pr-base.txt"
45+
govulncheck -scan package ./... > "${KUBE_TEMP}/pr-base.txt" || true
4646
popd >/dev/null
4747

4848
echo -e "\n HEAD: $(cat "${KUBE_TEMP}"/head.txt)"

0 commit comments

Comments
 (0)