Skip to content

Commit

Permalink
do not pass secrets as the parameter context in text prompt block (#1182
Browse files Browse the repository at this point in the history
)
  • Loading branch information
wintonzheng authored Nov 13, 2024
1 parent 11909cb commit bcebc41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions skyvern/forge/sdk/workflow/models/block.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bcebc41

Please sign in to comment.