mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 02:57:59 +00:00
s/VAULT_GITHUB_AUTH_TOKEN/VAULT_AUTH_GITHUB_TOKEN
This commit is contained in:
@@ -18,8 +18,8 @@ func (h *CLIHandler) Auth(c *api.Client, m map[string]string) (string, error) {
|
||||
|
||||
token, ok := m["token"]
|
||||
if !ok {
|
||||
if token = os.Getenv("VAULT_GITHUB_AUTH_TOKEN"); token == "" {
|
||||
return "", fmt.Errorf("GitHub token should be provided either as 'value' for 'token' key,\nor via an env var VAULT_GITHUB_AUTH_TOKEN")
|
||||
if token = os.Getenv("VAULT_AUTH_GITHUB_TOKEN"); token == "" {
|
||||
return "", fmt.Errorf("GitHub token should be provided either as 'value' for 'token' key,\nor via an env var VAULT_AUTH_GITHUB_TOKEN")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user