Merge pull request #3349 from Infisical/fix/secretSetCLIFix

Fix issue with missing token on secrets set command CLI
This commit is contained in:
carlosmonastyrski
2025-04-01 23:19:06 -03:00
committed by GitHub

View File

@@ -694,7 +694,7 @@ func SetRawSecrets(secretArgs []string, secretType string, environmentName strin
if err != nil {
return nil, fmt.Errorf("unable to get client with custom headers [err=%v]", err)
}
httpClient.SetAuthToken(tokenDetails.Token)
httpClient.SetHeader("Accept", "application/json")
// pull current secrets