validate_actions.pipeline_stages.builders.workflow_builder

Default implementation of a builder coordinating workflow construction.

Classes

DefaultWorkflowBuilder(problems, ...)

Constructs a structured representation of a GitHub Actions workflow file.

class validate_actions.pipeline_stages.builders.workflow_builder.DefaultWorkflowBuilder(problems, events_builder, jobs_builder, contexts, shared_components_builder)[source]

Bases: WorkflowBuilder

Constructs a structured representation of a GitHub Actions workflow file.

This class is responsible for parsing a GitHub Actions workflow YAML file and transforming it into a structured abstract syntax tree (AST) representation. It handles validation of the workflow structure during the parsing process and collects any problems encountered.

Parameters:
process(workflow_dict)[source]

Build a structured workflow representation from workflow dictionary.

This method processes the workflow dictionary into a structured Workflow object, validating the structure and collecting any problems encountered.

Parameters:

workflow_dict (Dict[String, Any]) – The workflow dictionary to process.

Returns:

The built Workflow object.

Return type:

Workflow