From f9b8222155f04590c23734d53818d7be9b5fe70d Mon Sep 17 00:00:00 2001 From: Tetiana Chupryna Date: Tue, 22 Jul 2025 16:47:36 +0200 Subject: [PATCH] Pass enablement when creating workflow token --- ee/lib/ai/duo_workflow/duo_workflow_service/client.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ee/lib/ai/duo_workflow/duo_workflow_service/client.rb b/ee/lib/ai/duo_workflow/duo_workflow_service/client.rb index f0c7bc11a33ab2..8c1fbab8d6da7b 100644 --- a/ee/lib/ai/duo_workflow/duo_workflow_service/client.rb +++ b/ee/lib/ai/duo_workflow/duo_workflow_service/client.rb @@ -43,7 +43,8 @@ def metadata "x-gitlab-authentication-type" => "oidc", 'x-gitlab-instance-id' => ::Gitlab::GlobalAnonymousId.instance_id, 'x-gitlab-realm' => ::CloudConnector.gitlab_realm, - 'x-gitlab-global-user-id' => ::Gitlab::GlobalAnonymousId.user_id(current_user) + 'x-gitlab-global-user-id' => ::Gitlab::GlobalAnonymousId.user_id(current_user), + 'x-gitlab-feature-enablement-type' => current_user.allowed_to_use(:duo_agent_platform).enablement_type } end -- GitLab