validate_actions.rules.action_input¶
Validates input specifications in workflow action ‘uses:’ fields.
Classes
|
Validates input specifications in workflow action 'uses:' fields. |
- class validate_actions.rules.action_input.ActionInput(workflow, fixer)[source]¶
Bases:
RuleValidates input specifications in workflow action ‘uses:’ fields.
This rule checks GitHub Actions workflow steps that reference external actions via the ‘uses:’ field. It validates input specifications to ensure proper action configuration.
Key validations: - Validates required inputs are provided - Checks that only defined inputs are used
- check()[source]¶
Validates all actions in the workflow for input issues.
Iterates through all workflow jobs and their steps, collecting ExecAction instances (steps that use the ‘uses:’ field) and validates them for input requirements.
- Yields:
Problem –
- Problems found during validation including missing inputs
and usage of undefined inputs.
- Return type:
Generator[Problem, None, None]