Skip to content

Commit 1038b8e

Browse files
committed
update lint action, copied from community remote
1 parent 9a85374 commit 1038b8e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,23 @@ on:
1414

1515
jobs:
1616
golangci:
17+
permissions:
18+
contents: read # for actions/checkout to fetch code
19+
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
1720
name: lint
1821
runs-on: ubuntu-latest
1922
steps:
2023
- name: Checkout repository
21-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
22-
- name: install Go
23-
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- name: Install Go
26+
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
2427
with:
25-
go-version: 1.22
28+
go-version: 1.23.x
2629
- name: Install snmp_exporter/generator dependencies
2730
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
2831
if: github.repository == 'prometheus/snmp_exporter'
2932
- name: Lint
30-
uses: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc # v3.7.0
33+
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
3134
with:
32-
version: v1.54.2
35+
args: --verbose
36+
version: v1.62.0

0 commit comments

Comments
 (0)