chore(deps): update dependency go to 1.21 #916
push_pr.yml
on: push
Matrix: Build integration for
Static analysis and linting
1m 23s
Matrix: Helm chart Lint
Matrix: Kubernetes E2E tests
Annotations
10 errors and 1 warning
Static analysis and linting:
src/server/webhook.go#L178
Function 'ServeHTTP' has too many statements (51 > 50) (funlen)
|
Static analysis and linting:
src/server/webhook_test.go#L22
Function 'TestServeHTTP' is too long (116 > 100) (funlen)
|
Static analysis and linting:
src/server/webhook.go#L126
assignOp: replace `path = path + "/-"` with `path += "/-"` (gocritic)
|
Static analysis and linting:
src/server/webhook_test.go#L34
wrapperFunc: use bytes.ReplaceAll method in `bytes.Replace(makeTestData(t, "default"), []byte("\"object\""), []byte("\"foo\""), -1)` (gocritic)
|
Static analysis and linting:
cmd/server/main.go#L39
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(appName, "-", "_", -1)` (gocritic)
|
Static analysis and linting:
cmd/server/main.go#L37
cyclomatic complexity 13 of func `main` is high (> 10) (gocyclo)
|
Static analysis and linting:
src/server/webhook.go#L144
G601: Implicit memory aliasing in for loop. (gosec)
|
Static analysis and linting:
src/server/webhook_test.go#L114
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
Static analysis and linting:
src/server/webhook_test.go#L146
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
Static analysis and linting:
cmd/server/main.go#L67
G112: Potential Slowloris Attack because ReadHeaderTimeout is not configured in the http.Server (gosec)
|
Static analysis and linting
Unexpected input(s) 'auditOn', valid inputs are ['entryPoint', 'args', 'config', 'publishToken']
|