Skip to content

🌱 Bump golang from 1.19 to 1.21 in /cron/internal/cii #373

🌱 Bump golang from 1.19 to 1.21 in /cron/internal/cii

🌱 Bump golang from 1.19 to 1.21 in /cron/internal/cii #373

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.
jobs:
golangci:
name: check-linter
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
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@639cd343e1d3b897ff35927a75193d57cfcba299 # v3.6.0
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
only-new-issues: true