From 3165d4fa26a89ebbd10edf1e95a3f0c29824fce3 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Tue, 12 Nov 2024 20:51:45 -0800 Subject: [PATCH] do not pass secrets as the parameter context in text prompt block --- skyvern/forge/sdk/workflow/models/block.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern/forge/sdk/workflow/models/block.py b/skyvern/forge/sdk/workflow/models/block.py index ccaf71bcf..fadb36e5b 100644 --- a/skyvern/forge/sdk/workflow/models/block.py +++ b/skyvern/forge/sdk/workflow/models/block.py @@ -704,8 +704,8 @@ async def execute(self, workflow_run_id: str, **kwargs: dict) -> BlockResult: for parameter in self.parameters: value = workflow_run_context.get_value(parameter.key) secret_value = workflow_run_context.get_original_secret_value_or_none(value) - if secret_value is not None: - parameter_values[parameter.key] = secret_value + if secret_value: + continue else: parameter_values[parameter.key] = value