From 1072c8836c2274a0cbdc0aceb51f9f181883ea96 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Tue, 16 Sep 2025 00:45:11 +0400 Subject: [PATCH] Enable redaction for community-published workflows --- .../app/projects/[projectId]/workflow/workflow_editor.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx b/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx index 27f78083..ec2ec1fe 100644 --- a/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx +++ b/apps/rowboat/app/projects/[projectId]/workflow/workflow_editor.tsx @@ -1646,9 +1646,12 @@ export function WorkflowEditor({ setCommunityPublishing(true); try { + // Use the same redaction logic as URL sharing to mask environment variables + const redactedWorkflow = JSON.parse(buildWorkflowExportJson()); + await createAssistantTemplate({ ...communityData, - workflow: state.present.workflow, // Use the current workflow + workflow: redactedWorkflow, // Use the redacted workflow }); setCommunityPublishSuccess(true);