linting
This commit is contained in:
@@ -161,6 +161,7 @@ func resolveToken(config Config) (string, string, error) {
|
||||
}
|
||||
}
|
||||
if tokenFilePath != "" {
|
||||
//nolint:gosec // Token file path comes from trusted deployment configuration.
|
||||
raw, err := os.ReadFile(tokenFilePath)
|
||||
if err != nil {
|
||||
return "", "", merrors.Internal("vault kv: failed to read token file " + tokenFilePath + ": " + err.Error())
|
||||
|
||||
Reference in New Issue
Block a user