validate_actions.pipeline_stages.builder¶
Builder stage that transformes parsed YAML data into a structured AST.
Classes
|
Abstract base class for workflow AST builders. |
|
Default implementation of the Builder stage for GitHub Actions workflows. |
- class validate_actions.pipeline_stages.builder.Builder(problems)[source]¶
Bases:
ProcessStage[Dict[String,Any],Workflow]Abstract base class for workflow AST builders.
The Builder stage transforms parsed YAML data into a structured AST representation that can be used for validation and analysis.
- Parameters:
problems (Problems)
- class validate_actions.pipeline_stages.builder.DefaultBuilder(problems)[source]¶
Bases:
BuilderDefault implementation of the Builder stage for GitHub Actions workflows.
This class orchestrates the construction of a complete workflow AST by coordinating multiple specialized builders. It creates and manages builders for different workflow components (events, jobs, steps, shared components) and delegates the actual AST construction to a workflow builder.
The builder follows a hierarchical structure where: - Workflow contains events and jobs - Jobs contain steps and shared components - Steps use shared components and contexts
- Parameters:
problems (Problems)
Builds reusable workflow components
- events_builder¶
Builds workflow trigger events (push, pull_request, etc.)
- Type:
- steps_builder¶
Builds individual job steps with actions and commands
- Type:
- jobs_builder¶
Builds job definitions with their steps and configuration
- Type:
- workflow_builder¶
Top-level builder that orchestrates all components
- Type: