ci: update the linter action version (#6575)

* ci: update the linter action version

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

* exclude rule `G115`; disable deprecated linter

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>

---------

Signed-off-by: Mohammed Al Sahaf <msaa1990@gmail.com>
This commit is contained in:
Mohammed Al Sahaf 2024-09-16 16:50:26 +03:00 committed by GitHub
parent f4bf4e0097
commit 6ab9fb6f74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
version: latest
# Windows times out frequently after about 5m50s if we don't set a longer timeout.
args: --timeout 10m

View File

@ -35,7 +35,6 @@ linters:
- errcheck
- errname
- exhaustive
- exportloopref
- gci
- gofmt
- goimports
@ -145,6 +144,9 @@ output:
issues:
exclude-rules:
- text: 'G115' # TODO: Either we should fix the issues or nuke the linter if it's bad
linters:
- gosec
# we aren't calling unknown URL
- text: 'G107' # G107: Url provided to HTTP request as taint input
linters:

View File

@ -817,7 +817,6 @@ func (s *Server) logRequest(
}
if fields == nil {
userID, _ := repl.GetString("http.auth.user.id")
reqBodyLength := 0