From 422609a22500927f0acd6eb883c86a65f4304bea Mon Sep 17 00:00:00 2001 From: Keshav Priyadarshi Date: Thu, 17 Jul 2025 00:36:54 +0530 Subject: [PATCH] Support optional inputs for pipeline steps Signed-off-by: Keshav Priyadarshi --- vulnerabilities/pipelines/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vulnerabilities/pipelines/__init__.py b/vulnerabilities/pipelines/__init__.py index aea3b761e..0a49e080c 100644 --- a/vulnerabilities/pipelines/__init__.py +++ b/vulnerabilities/pipelines/__init__.py @@ -56,6 +56,7 @@ def __init__( run_instance: PipelineRun = None, selected_groups: List = None, selected_steps: List = None, + **kwargs, ): """Load the Pipeline class.""" self.run = run_instance @@ -68,6 +69,9 @@ def __init__( self.execution_log = [] self.current_step = "" + # Optional args used as input in downstream pipeline steps + self.inputs = kwargs + def append_to_log(self, message): if self.run and self.run.pipeline.live_logging: self.run.append_to_log(message)