fix set secret

This commit is contained in:
Maidul Islam
2024-07-18 17:53:25 -04:00
parent 1f6c33bdb8
commit 5360fb033a
+3 -1
View File
@@ -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
} }