diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ed6d26c8..d26edc44 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,8 +16,8 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: latest + # Required: the version of golangci-lint is required and must be specified without patch version + version: v1.53.2 # Optional: working directory, useful for monorepos # working-directory: somedir diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6d5d5a94..2cbf73fb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,7 @@ variables: test:golangci-lint: stage: test - image: golangci/golangci-lint:latest + image: golangci/golangci-lint:v1.53.2 script: - golangci-lint run -v except: diff --git a/.golangci.yaml b/.golangci.yaml index ef87e033..6eb4c6cb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -32,7 +32,6 @@ linters: disable-all: true enable: - bodyclose - - depguard - errcheck - errname - exhaustive