Skip to content

Fix bad error handling in api key auth #5172

Fix bad error handling in api key auth

Fix bad error handling in api key auth #5172

Triggered via pull request September 20, 2024 15:14
Status Failure
Total duration 4m 22s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
lint (linux): internal/pkg/apikey/auth.go#L40
undefined: elasticsearch (typecheck)
lint (linux): internal/pkg/apikey/auth.go#L42
token declared and not used (typecheck)
lint (linux): internal/pkg/apikey/auth_test.go#L23
undefined: elasticsearch (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L42
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L57
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L68
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L79
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L90
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L122
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L165
undefined: apm (typecheck)
lint (linux)
The following actions uses node12 which is deprecated and will be forced to run on node16: golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint (linux)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v3, golangci/golangci-lint-action@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint (linux)
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/