diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 2209ddf..6ed9d42 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -6,6 +6,9 @@ on: - master pull_request: +permissions: + contents: read + jobs: golangci: name: lint @@ -13,6 +16,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 + + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v4 + with: + version: v1.56