From 4afb029ef48b71b0013ef80b24f3c110e522e19c Mon Sep 17 00:00:00 2001 From: Alex Akselrod Date: Mon, 3 Apr 2023 20:17:30 -0700 Subject: [PATCH] build: fix golangci-lint github action --- .github/workflows/golangci-lint.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index f7a5477..bc1e8ee 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -7,10 +7,6 @@ on: pull_request: branches: [ "**" ] - -permissions: - contents: read - jobs: golangci: name: lint @@ -20,7 +16,7 @@ jobs: with: go-version: 1.19.5 - uses: actions/checkout@v3 - - name: golangci-lint - uses: golangci/golangci-lint-action@v3 - with: - version: latest + - name: install golangci-lint + run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest + - name: run golangci-lint + run: golangci-lint run