Skip to content

Commit 73b02e8

Browse files
committed
use toolchain version
1 parent 3536ae4 commit 73b02e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/vulncheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
id: get-go-version
4141
run: |
4242
echo "Reading from go.mod"
43-
GO_VERSION=$(grep '^go ' go.mod | awk '{print $2}')
43+
GO_VERSION=$(grep -E "^toolchain " go.mod | awk -F' ' '{print $2}' | tr -d 'go')
4444
echo "Found $GO_VERSION"
4545
echo "go-version="$GO_VERSION"" >> $GITHUB_OUTPUT
4646

0 commit comments

Comments
 (0)