name: golangci-lint on: push: tags: - v* branches: - main pull_request: permissions: 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: - uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3 with: go-version: '>=1.19.4' - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # v3 - name: golangci-lint uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376 # v3 with: skip-go-installation: true args: --timeout=5m