mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 13:27:22 +00:00
fix set secret
This commit is contained in:
@@ -607,7 +607,9 @@ func SetRawSecrets(secretArgs []string, secretType string, environmentName strin
|
|||||||
getAllEnvironmentVariablesRequest := models.GetAllSecretsParameters{Environment: environmentName, SecretsPath: secretsPath, WorkspaceId: projectId}
|
getAllEnvironmentVariablesRequest := models.GetAllSecretsParameters{Environment: environmentName, SecretsPath: secretsPath, WorkspaceId: projectId}
|
||||||
if tokenDetails.Type == UNIVERSAL_AUTH_TOKEN_IDENTIFIER {
|
if tokenDetails.Type == UNIVERSAL_AUTH_TOKEN_IDENTIFIER {
|
||||||
getAllEnvironmentVariablesRequest.UniversalAuthAccessToken = tokenDetails.Token
|
getAllEnvironmentVariablesRequest.UniversalAuthAccessToken = tokenDetails.Token
|
||||||
} else {
|
}
|
||||||
|
|
||||||
|
if tokenDetails.Type == SERVICE_TOKEN_IDENTIFIER {
|
||||||
getAllEnvironmentVariablesRequest.InfisicalToken = tokenDetails.Token
|
getAllEnvironmentVariablesRequest.InfisicalToken = tokenDetails.Token
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user