diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index de8980465..1391e832b 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,14 +1,3 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# name: "CodeQL" on: diff --git a/.github/workflows/lint-go.yaml b/.github/workflows/lint-go.yaml index 2edf2f746..9fdd4ca04 100644 --- a/.github/workflows/lint-go.yaml +++ b/.github/workflows/lint-go.yaml @@ -48,15 +48,3 @@ jobs: # Optional: The mode to install golangci-lint. It can be 'binary' or 'goinstall'. # install-mode: "goinstall" - - gosec: - name: gosec-lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - - name: Run Gosec Security Scanner - uses: securego/gosec@v2.18.2 - with: - # excluding G104: Audit errors not checked - args: --exclude=G104 ./... diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 000000000..d0cc50c43 --- /dev/null +++ b/.golangci.yml @@ -0,0 +1,19 @@ +# Please refer to the official golangci-lint config documentation for more details: +# https://golangci-lint.run/usage/configuration/ +# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml + +linters: + enable-all: true + +linters-settings: + gci: + sections: + - standard + - default + +run: + timeout: 10m + tests: false + +issues: + max-issues-per-linter: 1000