From 871c96038456a0f9c773302407ad730c462a5e0d Mon Sep 17 00:00:00 2001 From: Maxwell Date: Fri, 25 Aug 2023 01:12:47 +0000 Subject: [PATCH] fixed use of action --- .github/workflows/golangci-lint.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml index ee75d79..2818452 100644 --- a/.github/workflows/golangci-lint.yaml +++ b/.github/workflows/golangci-lint.yaml @@ -2,22 +2,21 @@ name: Go Lint on: [push, pull_request] +permissions: + contents: read + jobs: golangci: name: lint runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v2 - - - name: Set up Go - uses: actions/setup-go@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 with: - go-version: 1.20 - - - name: Run golangci-lint - uses: golangci/golangci-lint-action@v2 + go-version: '1.20' + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 with: - version: v1.42.0 - args: --issues-exit-code=0 - working-directory: . \ No newline at end of file + version: v1.54 + args: --issues-exit-code=0 \ No newline at end of file