GitHub Actions Runs YAML That Breaks zizmor, and the Parser Is the Suspect
Software / news
GitHub Actions Runs YAML That Breaks zizmor, and the Parser Is the Suspect
A 15-month-old zizmor bug report ended on November 22 with its maintainer blaming GitHub's own parser, not tree-sitter.

GitHub Actions runs workflow files that the YAML 1.2.2 specification says are invalid, and at least one widely used static analyser refuses to read them. The mismatch surfaced on November 22, when a blog post on yossarian.net, titled "GitHub Actions accepts invalid YAML", traced a 15-month-old zizmor bug report to GitHub's own parser.
The case is small but concrete: a multi-line single-quoted string whose closing line is one space short of the indentation the spec demands.
The workflow that broke zizmor
zizmor is an MIT-licensed static analyser for GitHub Actions workflows, with 7,119 stars on GitHub. On August 29, 2025, a user named pyun96 reported that zizmor 1.12.1 could not scan the jfrog/setup-jfrog-cli repository. The log ended with "input is not valid YAML" and "no audit was performed."
The trigger was one step in that repository's auto-build-publish.yml: a json: input to jsdaniell/create-json@v1.2.3 written as a single-quoted string spread over six lines. The post reproduces the step, and the closing }' line is not indented one space further than its parent, which the post says YAML 1.2.2 section 8.2.3 requires of flow nodes inside a block collection.
GitHub Actions accepts it anyway.
How the diagnosis flipped
The zizmor thread shows the account woodruffw first blaming the wrong component. On August 29, 2025 the account reproduced the failure with a three-line file, showed that PyYAML parsed it without complaint, and concluded the fault lay in tree-sitter-yaml, the grammar zizmor uses to locate nodes.
On October 29, 2025 the same account opened a pull request to make the grammar accept the input. On November 22, 2026 the account reversed course. The comment on the zizmor issue, posted at 20:38 UTC, says the author is "not convinced that this is a bug in zizmor" and that it "appears to be a bug in GitHub's own YAML parser (which I think is YamlDotNet)."
Twenty minutes later the account opened a revert. Its description says some other parsers "don't correctly follow" the rule, and that the author "should have checked that before trying to 'fix'" tree-sitter-yaml, "which is otherwise admirably strict here."
| Date | Event | Source |
|---|---|---|
| 2025-08-29 | zizmor issue 1116 opened; PyYAML accepts the file | zizmor issue |
| 2025-10-29 | tree-sitter-yaml pull request 36 loosens the grammar | tree-sitter-yaml |
| 2026-11-22 | Blog post published; pull request 51 reverts 36 | yossarian.net, tree-sitter-yaml |
Why the parser is the suspect
The post's author guesses that GitHub uses YamlDotNet and says Actions appears to ship version 5.3.0, released in 2018. Neither point is confirmed by GitHub. The post also says that upgrading to 18.1.0, the newest release when it was written, would not help, because the relevant check in Scanner.cs carries an !isSingleQuoted guard.
A 2020 YamlDotNet change, pull request 467, made the parser reject several cases from the official yaml-test-suite. The post speculates that it covered only the double-quoted form because the suite tests this rule only with double-quoted strings. That is the author's reading, not something the pull request states.
One discrepancy in the record: the revert's description calls the rule 8.3.2, while the comment linking the spec points at the anchor for section 8.2.3, and the post uses 8.2.3.
What it means for workflow authors
Nothing breaks for people whose workflows run today. The cost lands on tooling that follows the spec. If a linter, editor plugin or security scanner uses a strict parser, it can fail on a file GitHub executes, and a scanner that exits on parse failure audits nothing. That is what happened in the zizmor report, where the requester wanted one malformed action not to halt a batch scan.
The same gap works in reverse for security tools. A scanner and the runner that executes the file must read the same document, and here they do not agree on what the document is. For another standards dispute, see the site's report on C++26 contracts; for a company selling faster Actions runners, see its piece on StarSling.
Still open: GitHub has not said whether it will tighten its parser. Tightening the parser could break workflows that run today. The tree-sitter-yaml revert, number 51, was still open when checked on November 23.
Sources
More in Software
- 01Reaktiv Workbook Makes Every Spreadsheet Cell a Python Expression, at Version 0.1.9The MIT-licensed tool runs in the browser through Pyodide or on a local interpreter, and published its ninth release six days after the repository appeared.
- 02LiberNT, a 1,996-Star ReactOS Fork, Says AI Writes Code and Humans Run the TestsThe GPL-3.0 Windows 11 compatibility project publishes its AI rules in the README while press headlines call it AI-fuelled and vibe coded.
- 03Muru, Graham Dumpleton's Rust Server for Python Apps, Has 185 Open Issues and No BenchmarksThe mod_wsgi author's alpha project takes contributions as requirements rather than code, and its first post shows a 0.2 ms log line.
- 04Fast-Anything Reports a 116x Python Speedup, and 8 of Its 9 Benchmark Rows Run One JobThe MIT-licensed tool ports hot functions to Rust with a coding agent, and its README gives no run counts or variance.