ci: Enable SA5008 linting and fix discovered error. (#26633)

This commit is contained in:
James Rasell
2025-08-27 09:24:50 +01:00
committed by GitHub
parent 4b9597a31d
commit dcfcbc8f16
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ run:
timeout: 10m
# Modules download mode (do not modify go.mod)
module-download-mode: readonly
modules-download-mode: readonly
# Exclude test files
tests: false
@@ -52,6 +52,7 @@ linters:
- shadow
staticcheck:
checks:
- SA5008
- ST1016
- ST1020
exclusions:

View File

@@ -104,7 +104,7 @@ type VaultConfig struct {
Enabled bool `json:"enabled"`
Address string `json:"address"`
AllowUnauthenticated *bool `json:"allow_unauthenticated,omitempty"`
Token string `json:"token,omitemtpy"`
Token string `json:"token,omitempty"`
Role string `json:"role,omitempty"`
JWTAuthBackendPath string `json:"jwt_auth_backend_path,omitempty"`
DefaultIdentity *WorkloadIdentityConfig `json:"default_identity,omitempty"`