support templating with secrets / credentials (#3565)

This commit is contained in:
pedrohsdb
2025-09-30 13:20:44 -07:00
committed by GitHub
parent 8c85e2fdc6
commit 878ef36a36
2 changed files with 20 additions and 0 deletions

View File

@@ -185,6 +185,8 @@ class Block(BaseModel, abc.ABC):
block_reference_data: dict[str, Any] = workflow_run_context.get_block_metadata(self.label)
template_data = workflow_run_context.values.copy()
if workflow_run_context.include_secrets_in_templates:
template_data.update(workflow_run_context.secrets)
if self.label in template_data:
current_value = template_data[self.label]
if isinstance(current_value, dict):