From 878a10cf234756190b3c5cd54e45230f079f20af Mon Sep 17 00:00:00 2001 From: Marceau MAUBERT Date: Tue, 19 Sep 2023 16:20:36 +0200 Subject: [PATCH 1/2] FIx: mapping of multiple action dependencies --- internal/cli/actions.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cli/actions.go b/internal/cli/actions.go index f6ec6a8d7..409f5dd65 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -272,7 +272,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" @@ -548,8 +548,8 @@ func inputDependenciesToActionDependencies(dependencies map[string]string) *[]ma for name, version := range dependencies { actionDependencyList = append(actionDependencyList, management.ActionDependency{ - Name: &name, - Version: &version, + Name: auth0.String(name), + Version: auth0.String(version), }) } From b9e5bcf5820ea181e130996e05a7e42b6105ac21 Mon Sep 17 00:00:00 2001 From: Will Vedder Date: Wed, 20 Sep 2023 10:22:12 -0400 Subject: [PATCH 2/2] Update internal/cli/actions.go --- internal/cli/actions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 409f5dd65..a94f71653 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -272,7 +272,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"