Browse Source

ci: backport lint configuration changes (#7226)

(cherry picked from commit 6f66c60397)
pull/7220/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
5591d08b4a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions
  1. +2
    -2
      .github/workflows/lint.yml
  2. +1
    -1
      .github/workflows/linter.yml
  3. +1
    -1
      .golangci.yml

+ 2
- 2
.github/workflows/lint.yml View File

@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 8
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/checkout@v2.4.0
- uses: technote-space/get-diff-action@v5
with:
PATTERNS: |
@ -23,7 +23,7 @@ jobs:
- uses: golangci/golangci-lint-action@v2.5.2
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.38
version: v1.42.1
args: --timeout 10m
github-token: ${{ secrets.github_token }}
if: env.GIT_DIFF

+ 1
- 1
.github/workflows/linter.yml View File

@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2.4.0
- name: Lint Code Base
uses: docker://github/super-linter:v3
env:


+ 1
- 1
.golangci.yml View File

@ -18,7 +18,7 @@ linters:
# - godox
- gofmt
- goimports
# - golint
- revive
- gosec
- gosimple
- govet


Loading…
Cancel
Save