diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 96dc86fb5..5e5f1a777 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -271,7 +271,7 @@ func updateActionCmd(cli *cli) *cobra.Command { "To update interactively, use `auth0 actions update` with no arguments.\n\n" + "To update non-interactively, supply the action id, name, code, secrets and " + "dependencies through the flags.", - Example: ` auth0 actions update + Example: ` auth0 actions update auth0 actions update --name myaction auth0 actions update --name myaction --code "$(cat path/to/code.js)" auth0 actions update --name myaction --code "$(cat path/to/code.js)" --dependency "lodash=4.0.0" @@ -558,7 +558,9 @@ func inputDependenciesToActionDependencies(dependencies map[string]string) *[]ma func inputSecretsToActionSecrets(secrets map[string]string) *[]management.ActionSecret { actionSecrets := make([]management.ActionSecret, 0) - for name, value := range secrets { + for k, v := range secrets { + name := k + value := v actionSecrets = append(actionSecrets, management.ActionSecret{ Name: &name, Value: &value,