Skip to content

Commit ac62eb7

Browse files
authored
Merge pull request #518 from prometheus/repo_sync
Synchronize common files from prometheus/prometheus
2 parents 2dfcc43 + 777f9cc commit ac62eb7

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

.github/workflows/golangci-lint.yml

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
# This action is synced from https://github.com./prometheus/prometheus
13
name: golangci-lint
24
on:
35
push:
@@ -10,24 +12,21 @@ on:
1012
- ".golangci.yml"
1113
pull_request:
1214

13-
permissions:
14-
contents: read
15-
1615
jobs:
1716
golangci:
1817
name: lint
1918
runs-on: ubuntu-latest
2019
steps:
2120
- name: Checkout repository
22-
uses: actions/checkout@v3
21+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
2322
- name: install Go
24-
uses: actions/setup-go@v2
23+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2524
with:
2625
go-version: 1.20.x
2726
- name: Install snmp_exporter/generator dependencies
2827
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
2928
if: github.repository == 'prometheus/snmp_exporter'
3029
- name: Lint
31-
uses: golangci/golangci-lint-action@v3.4.0
30+
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
3231
with:
33-
version: v1.51.2
32+
version: v1.54.2

.yamllint

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ rules:
2020
config/testdata/section_key_dup.bad.yml
2121
line-length: disable
2222
truthy:
23-
ignore: |
24-
.github/workflows/*.yml
23+
check-keys: false

Makefile.common

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ ifneq ($(shell command -v gotestsum > /dev/null),)
5555
endif
5656
endif
5757

58-
PROMU_VERSION ?= 0.14.0
58+
PROMU_VERSION ?= 0.15.0
5959
PROMU_URL := https://github.com./prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
6060

6161
SKIP_GOLANGCI_LINT :=
6262
GOLANGCI_LINT :=
6363
GOLANGCI_LINT_OPTS ?=
64-
GOLANGCI_LINT_VERSION ?= v1.51.2
64+
GOLANGCI_LINT_VERSION ?= v1.54.2
6565
# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
6666
# windows isn't included here because of the path separator being different.
6767
ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))

0 commit comments

Comments
 (0)