From b1347c52f84ff3b1f44c707e8e4c434eb8343df2 Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 18 Dec 2025 14:21:48 +0100 Subject: [PATCH 1/3] add non api token warning Signed-off-by: Sylwester Piskozub --- app/cli/cmd/root.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/cli/cmd/root.go b/app/cli/cmd/root.go index b06e59375..232966d6f 100644 --- a/app/cli/cmd/root.go +++ b/app/cli/cmd/root.go @@ -153,6 +153,7 @@ func NewRootCmd(l zerolog.Logger) *cobra.Command { // Warn users when the session is interactive, and the operation is supposed to use an API token instead if shouldAskForConfirmation(cmd) && isUserToken && !flagYes { + logger.Warn().Msgf("You are running in user-attended mode. For automated workflows, use an API token instead.") if !confirmationPrompt(fmt.Sprintf("This command will run against the organization %q", orgName)) { return errors.New("command canceled by user") } From e8fcb674ea3bfa51be156b0037e8a3f284c94b5d Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 18 Dec 2025 19:21:51 +0100 Subject: [PATCH 2/3] Update app/cli/cmd/root.go Co-authored-by: Miguel Martinez Trivino Signed-off-by: Sylwester Piskozub --- app/cli/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli/cmd/root.go b/app/cli/cmd/root.go index 232966d6f..f8deedf9c 100644 --- a/app/cli/cmd/root.go +++ b/app/cli/cmd/root.go @@ -153,7 +153,7 @@ func NewRootCmd(l zerolog.Logger) *cobra.Command { // Warn users when the session is interactive, and the operation is supposed to use an API token instead if shouldAskForConfirmation(cmd) && isUserToken && !flagYes { - logger.Warn().Msgf("You are running in user-attended mode. For automated workflows, use an API token instead.") +logger.Warn().Msg("User-attended mode detected. This is intended for local testing only. For CI/CD or automated workflows, please use an API token.") if !confirmationPrompt(fmt.Sprintf("This command will run against the organization %q", orgName)) { return errors.New("command canceled by user") } From b38f649e41ede18e2f056bae033af39ac83664a2 Mon Sep 17 00:00:00 2001 From: Sylwester Piskozub Date: Thu, 18 Dec 2025 19:28:10 +0100 Subject: [PATCH 3/3] fmt Signed-off-by: Sylwester Piskozub --- app/cli/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/cli/cmd/root.go b/app/cli/cmd/root.go index f8deedf9c..ab4d2a6b8 100644 --- a/app/cli/cmd/root.go +++ b/app/cli/cmd/root.go @@ -153,7 +153,7 @@ func NewRootCmd(l zerolog.Logger) *cobra.Command { // Warn users when the session is interactive, and the operation is supposed to use an API token instead if shouldAskForConfirmation(cmd) && isUserToken && !flagYes { -logger.Warn().Msg("User-attended mode detected. This is intended for local testing only. For CI/CD or automated workflows, please use an API token.") + logger.Warn().Msg("User-attended mode detected. This is intended for local testing only. For CI/CD or automated workflows, please use an API token.") if !confirmationPrompt(fmt.Sprintf("This command will run against the organization %q", orgName)) { return errors.New("command canceled by user") }