From bcd27c4d6c92f7906c6b721f254d7fa6c8b25150 Mon Sep 17 00:00:00 2001 From: Nick Rosbrook Date: Thu, 22 Aug 2024 11:50:10 -0400 Subject: [PATCH] .github: update lint.yaml --- .github/workflows/lint.yaml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 09976d8..2f4700b 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,20 +1,21 @@ on: [push, pull_request] -name: Lint +name: golangci-lint + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + # pull-requests: read + jobs: - lint: - strategy: - matrix: - go-version: [1.23.x] - os: [ubuntu-latest] - runs-on: ${{ matrix.os }} + golangci: + name: lint + runs-on: ubuntu-latest steps: - - name: Install Go - uses: actions/setup-go@v3 - with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v3 - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: latest + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: stable + - name: golangci-lint + uses: golangci/golangci-lint-action@v6 + with: + version: v1.60