zizmor now fully supports YAML anchors, eliminating crashes and mis-detections
After their changes, zizmor can analyze all GitHub Actions workflows with YAML anchors without crashing or producing incorrect findings.
Security & privacy Trail of Bits 22 May 2026 Tooling Real-world evidence
Published as “Bringing full YAML anchor support to zizmor”
Why it matters
Improving zizmor’s YAML anchor handling reduces false negatives and crashes, strengthening CI security for the small but high-value set of projects that use anchors.
Summary
The team built a corpus of 41,253 GitHub Actions workflow files from 6,612 high-value open-source repositories and ran the static analyzer zizmor against it. They identified four anchor-related bugs that caused crashes or wrong-location findings and fixed them, along with several other deserialization and expression-evaluator issues. After the fixes, zizmor no longer crashes on the anchor-using workflows and its coverage is validated against the real-world corpus. The evidence is based on a single large-scale run on actual workflow files.
What they found 2
- zizmor crashed on 45 of the 41,253 workflows before the fixes
“When we ran zizmor against the corpus, it crashed on 45 of the 41,253 workflows.”
- Only 43 of the 41,253 workflows use YAML anchors (≈0.1%)
“In our corpus, only 43 of the 41,253 workflows use YAML anchors (roughly 0.1%)”
Caveats 1
- Anchors appear in only 0.1% of the examined workflows, limiting the immediate practical impact of the improvements.
What’s new here 4
- Added full YAML anchor parsing to zizmor, fixing crashes and incorrect locations.
- Resolved four specific anchor handling bugs (alias flattening, prefix leakage, duplicate anchors, template-injection audit).
- Introduced integration tests and updated documentation for anchor support.
- Reported and helped fix additional deserialization, expression-evaluator, and upstream tree-sitter-yaml bugs.