File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1818 if : github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
1919 steps :
2020 - name : git checkout
21- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
21+ uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2222 - name : Set docker hub repo name
2323 run : echo "DOCKER_REPO_NAME=$(make docker-repo-name)" >> $GITHUB_ENV
2424 - name : Push README to Dockerhub
4040 if : github.repository_owner == 'prometheus' || github.repository_owner == 'prometheus-community' # Don't run this workflow on forks.
4141 steps :
4242 - name : git checkout
43- uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
43+ uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
4444 - name : Set quay.io org name
4545 run : echo "DOCKER_REPO=$(echo quay.io/${GITHUB_REPOSITORY_OWNER} | tr -d '-')" >> $GITHUB_ENV
4646 - name : Set quay.io repo name
Original file line number Diff line number Diff line change @@ -24,16 +24,16 @@ jobs:
2424 runs-on : ubuntu-latest
2525 steps :
2626 - name : Checkout repository
27- uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
27+ uses : actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
2828 - name : Install Go
29- uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
29+ uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
3030 with :
31- go-version : 1.22 .x
31+ go-version : 1.23 .x
3232 - name : Install snmp_exporter/generator dependencies
3333 run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
3434 if : github.repository == 'prometheus/snmp_exporter'
3535 - name : Lint
3636 uses : golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
3737 with :
3838 args : --verbose
39- version : v1.59.1
39+ version : v1.60.2
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_
6161SKIP_GOLANGCI_LINT :=
6262GOLANGCI_LINT :=
6363GOLANGCI_LINT_OPTS ?=
64- GOLANGCI_LINT_VERSION ?= v1.59.1
64+ GOLANGCI_LINT_VERSION ?= v1.60.2
6565# golangci-lint only supports linux, darwin and windows platforms on i386/amd64/arm64.
6666# windows isn't included here because of the path separator being different.
6767ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
@@ -275,3 +275,9 @@ $(1)_precheck:
275275 exit 1; \
276276 fi
277277endef
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