You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add YAML anchor and alias support for GitHub Actions workflows
Implements two-pass YAML parsing to resolve anchors (&anchor) and aliases
(*alias) before linting, matching GitHub Actions' native YAML support.
- Add containsAnchorsOrAliases() to detect anchor usage
- Add resolveYAMLAnchors() using unmarshal/marshal strategy
- Modify Parse() to resolve anchors when present
- Add comprehensive test suite covering various anchor scenarios
- Preserve backward compatibility for workflows without anchors
- Maintain error detection and line number reporting after resolution
Fixes workflows that previously failed with "alias node but mapping node
is expected" errors when using YAML anchors supported by GitHub Actions.
0 commit comments