File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 1010 - " .golangci.yml"
1111 pull_request :
1212
13+ permissions :
14+ contents : read
15+
1316jobs :
1417 golangci :
1518 name : lint
1619 runs-on : ubuntu-latest
1720 steps :
1821 - name : Checkout repository
19- uses : actions/checkout@v3
22+ uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
23+ with :
24+ persist-credentials : false
2025 - name : install Go
21- uses : actions/setup-go@v3
26+ uses : actions/setup-go@be3c94b385c4f180051c996d336f57a34c397495 # v3
2227 with :
2328 go-version : 1.20.x
2429 - name : Install snmp_exporter/generator dependencies
2530 run : sudo apt-get update && sudo apt-get -y install libsnmp-dev
2631 if : github.repository == 'prometheus/snmp_exporter'
2732 - name : Lint
28- 33+ uses : golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # v3.4.0
2934 with :
3035 version : v1.51.2
You can’t perform that action at this time.
0 commit comments