mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
ci: Enable SA5008 linting and fix discovered error. (#26633)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user