Skip to content

Fix bad error handling in api key auth #5174

Fix bad error handling in api key auth

Fix bad error handling in api key auth #5174

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

golangci-lint.yml

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

Annotations

10 errors and 4 warnings
lint (linux): internal/pkg/apikey/auth.go#L38
undefined: elasticsearch (typecheck)
lint (linux): internal/pkg/apikey/auth.go#L40
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#L41
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L56
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L67
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L78
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L89
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L121
undefined: apm (typecheck)
lint (linux): internal/pkg/bulk/opApiKey.go#L164
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/
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/