File tree 2 files changed +12
-6
lines changed
2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ jobs:
24
24
runs-on : ubuntu-latest
25
25
steps :
26
26
- name : Checkout repository
27
- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
27
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28
28
- name : Install Go
29
- uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
29
+ uses : actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0
30
30
with :
31
- go-version : 1.22 .x
31
+ go-version : 1.23 .x
32
32
- name : Install snmp_exporter/generator dependencies
33
33
run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
34
34
if : github.repository == 'prometheus/snmp_exporter'
35
35
- name : Lint
36
- uses : golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
36
+ uses : golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
37
37
with :
38
38
args : --verbose
39
- version : v1.59.1
39
+ version : v1.61.0
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_
61
61
SKIP_GOLANGCI_LINT :=
62
62
GOLANGCI_LINT :=
63
63
GOLANGCI_LINT_OPTS ?=
64
- GOLANGCI_LINT_VERSION ?= v1.59.1
64
+ GOLANGCI_LINT_VERSION ?= v1.60.2
65
65
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
66
66
# windows isn't included here because of the path separator being different.
67
67
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
@@ -275,3 +275,9 @@ $(1)_precheck:
275
275
exit 1; \
276
276
fi
277
277
endef
278
+
279
+ govulncheck: install-govulncheck
280
+ govulncheck ./...
281
+
282
+ install-govulncheck:
283
+ command -v govulncheck > /dev/null || go install golang.org/x/vuln/cmd/govulncheck@latest
You can’t perform that action at this time.
0 commit comments