Skip to content

Commit c7909b6

Browse files
committed
ci: lock down staticcheck and govulncheck in lint.sh
1 parent d1468a7 commit c7909b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: ci/lint.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
#!/bin/sh
2+
set -x
23
set -eu
34
cd -- "$(dirname "$0")/.."
45

56
go vet ./...
67
GOOS=js GOARCH=wasm go vet ./...
78

8-
go install honnef.co/go/tools/cmd/staticcheck@latest
9+
go install honnef.co/go/tools/cmd/staticcheck@v0.4.7
910
staticcheck ./...
1011
GOOS=js GOARCH=wasm staticcheck ./...
1112

@@ -15,7 +16,7 @@ govulncheck() {
1516
cat "$tmpf"
1617
fi
1718
}
18-
go install golang.org/x/vuln/cmd/govulncheck@latest
19+
go install golang.org/x/vuln/cmd/govulncheck@v1.1.1
1920
govulncheck ./...
2021
GOOS=js GOARCH=wasm govulncheck ./...
2122

0 commit comments

Comments
 (0)