Skip to content

🌱 Bump github.com/golangci/golangci-lint from 1.59.1 to 1.60.1 in /tools #2998

🌱 Bump github.com/golangci/golangci-lint from 1.59.1 to 1.60.1 in /tools

🌱 Bump github.com/golangci/golangci-lint from 1.59.1 to 1.60.1 in /tools #2998

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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
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@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
only-new-issues: true