mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
7d086171fc
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](a4f60bb28d...aaa42aa062
)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
# This action is synced from https://github.com/prometheus/prometheus
|
|
name: golangci-lint
|
|
on:
|
|
push:
|
|
paths:
|
|
- "go.sum"
|
|
- "go.mod"
|
|
- "**.go"
|
|
- "scripts/errcheck_excludes.txt"
|
|
- ".github/workflows/golangci-lint.yml"
|
|
- ".golangci.yml"
|
|
pull_request:
|
|
|
|
permissions: # added using https://github.com/step-security/secure-repo
|
|
contents: read
|
|
|
|
jobs:
|
|
golangci:
|
|
permissions:
|
|
contents: read # for actions/checkout to fetch code
|
|
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
|
- name: Install Go
|
|
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
|
with:
|
|
go-version: 1.22.x
|
|
- name: Install snmp_exporter/generator dependencies
|
|
run: sudo apt-get update && sudo apt-get -y install libsnmp-dev
|
|
if: github.repository == 'prometheus/snmp_exporter'
|
|
- name: Lint
|
|
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
|
|
with:
|
|
args: --verbose
|
|
version: v1.59.1
|