From 705394e10307296c50bfdc0ca18575979e4c57ef Mon Sep 17 00:00:00 2001 From: Michael Ackley Date: Tue, 14 Nov 2023 22:55:58 -0600 Subject: [PATCH] Fix lint action --- .github/workflows/ci.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 497dd48..dc1ad70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,20 +12,21 @@ on: - main 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: - - name: Setup - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 with: - go-version: ${{ matrix.go }} - - uses: actions/checkout@v2 - - name: Get Deps - run: go mod vendor - - name: Lint - uses: golangci/golangci-lint-action@v2 + go-version: '1.21' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 with: - version: v1.50.1 + version: v1.51 build: name: build