Skip to content

Merge pull request #153 from sysdiglabs/dependabot/docker/sysdig/sysd… #234

Merge pull request #153 from sysdiglabs/dependabot/docker/sysdig/sysd…

Merge pull request #153 from sysdiglabs/dependabot/docker/sysdig/sysd… #234

Workflow file for this run

---

Check failure on line 1 in .github/workflows/golangci-lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/golangci-lint.yml

Invalid workflow file

(Line: 3, Col: 1): Unexpected value 'version'
# This action is synced from https://github.com/prometheus/prometheus
version: 1
name: golangci-lint
on:
push:
paths:
- "go.sum"
- "go.mod"
- "**.go"
- "scripts/errcheck_excludes.txt"
- ".github/workflows/golangci-lint.yml"
- ".golangci.yml"
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
env:
CGO_ENABLED: 1
GOEXPERIMENT: boringcrypto
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: install Go
uses: actions/setup-go@v5
with:
go-version: 1.25.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@v8
with:
version: v2.4.0