Skip to content

✨ allow probes to collect their own data from repo clients (… #2387

✨ allow probes to collect their own data from repo clients (…

✨ allow probes to collect their own data from repo clients (… #2387

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: read # Use with `only-new-issues` option.
env:
GO_VERSION: 1.22
jobs:
golangci:
name: check-linter
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ env.GO_VERSION }}
cache: false # golangci-lint maintains its own cache
- name: set golangci-lint version # keep in sync with tools/go.mod
run: |
echo "GOLANGCI_LINT_VERSION=$(cd tools; go list -m -f '{{ .Version }}' github.com/golangci/golangci-lint)" >> "$GITHUB_ENV"
- name: golangci-lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
only-new-issues: true