Skip to content

Commit 903a8ed

Browse files
authored
Merge pull request #1951 from aboutcode-org/support-pipeline-inputs
Support optional inputs for pipeline steps
2 parents 2eb80ba + 422609a commit 903a8ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vulnerabilities/pipelines/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def __init__(
5656
run_instance: PipelineRun = None,
5757
selected_groups: List = None,
5858
selected_steps: List = None,
59+
**kwargs,
5960
):
6061
"""Load the Pipeline class."""
6162
self.run = run_instance
@@ -68,6 +69,9 @@ def __init__(
6869
self.execution_log = []
6970
self.current_step = ""
7071

72+
# Optional args used as input in downstream pipeline steps
73+
self.inputs = kwargs
74+
7175
def append_to_log(self, message):
7276
if self.run and self.run.pipeline.live_logging:
7377
self.run.append_to_log(message)

0 commit comments

Comments
 (0)