<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: aevumere</title>
    <description>The latest articles on DEV Community by aevumere (@zhuazhua).</description>
    <link>https://dev.to/zhuazhua</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4106594%2Ff6e38fb1-71eb-4397-81e2-067b6f5fe01e.jpg</url>
      <title>DEV Community: aevumere</title>
      <link>https://dev.to/zhuazhua</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zhuazhua"/>
    <language>en</language>
    <item>
      <title>Strict YAML before CI: duplicate keys, YAML 1.2, and Actions permissions</title>
      <dc:creator>aevumere</dc:creator>
      <pubDate>Wed, 02 Sep 2026 17:26:52 +0000</pubDate>
      <link>https://dev.to/zhuazhua/i-built-a-strict-yaml-preflight-for-mistakes-lenient-parsers-miss-1i5o</link>
      <guid>https://dev.to/zhuazhua/i-built-a-strict-yaml-preflight-for-mistakes-lenient-parsers-miss-1i5o</guid>
      <description>&lt;p&gt;A few recent workflow failures pushed me to build a deliberately small checker. One project had a syntactically valid workflow stop parsing because &lt;code&gt;workflows: write&lt;/code&gt; was not a valid &lt;code&gt;permissions&lt;/code&gt; key. Another generated a block scalar with broken indentation and got zero-job failures on every push. I also found the opposite problem: a local validator rejected a newly supported field because its schema was stale. Those cases shaped &lt;strong&gt;YAML Preflight&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is the smallest example of the kind of mistake it catches:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;8080&lt;/span&gt;
  &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;9090&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Some lenient loaders silently keep the last value. A strict preflight rejects the duplicate at its source location instead of letting behavior depend on whichever parser runs next.&lt;/p&gt;

&lt;p&gt;👉 &lt;a href="https://yaml.aevumere.com/yaml-preflight?source=devto-showdev" rel="noopener noreferrer"&gt;Try the live preflight — no signup, no YAML upload&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The page opens with valid YAML containing an invalid GitHub Actions permission. Click &lt;strong&gt;Run free preflight&lt;/strong&gt; to see the scoped finding, choose the duplicate-key example, or paste your own YAML.&lt;/p&gt;

&lt;h2&gt;
  
  
  What works today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;browser-local parsing; the pasted document never leaves the page&lt;/li&gt;
&lt;li&gt;strict YAML syntax checking, up to 100 KB&lt;/li&gt;
&lt;li&gt;duplicate mapping-key detection&lt;/li&gt;
&lt;li&gt;YAML 1.2-style booleans, so a GitHub Actions &lt;code&gt;on&lt;/code&gt; key is not normalized into &lt;code&gt;true&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;a small GitHub Actions &lt;code&gt;permissions&lt;/code&gt; check based on the current official reference&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Unknown permission names are warnings rather than hard failures, precisely because platform schemas evolve. The result links to the GitHub reference and states when the bundled list was checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;This is not full GitHub Actions workflow-schema validation. It does not inspect repositories or execute workflows. Parsing now runs entirely in your browser: the pasted document is never sent to the server. A check sends only an anonymous valid/invalid result for this experiment. The checker has a stable URL, but this is still an early validation deployment with no availability promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  The commercial experiment, stated plainly
&lt;/h2&gt;

&lt;p&gt;The checker is working and free. A &lt;strong&gt;$9/month CI monitor&lt;/strong&gt; shown beside it is only a proposed next step; it is not built. Clicking the interest button records one anonymous price-aware signal. There is no checkout and no payment is collected.&lt;/p&gt;

&lt;p&gt;I am trying to learn one thing before building more: &lt;strong&gt;would you want this as a pull-request check, and which YAML failure has cost you the most time?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Relevant public failure reports that informed the scope:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/PhilippKronenberg/mfbdfm/issues/87" rel="noopener noreferrer"&gt;Invalid workflow permission stopped parsing and triggers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/actionsforge/actions/issues/167" rel="noopener noreferrer"&gt;A reusable workflow broke every caller on the same invalid permission&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/CyrilB1531/lodestar/issues/497" rel="noopener noreferrer"&gt;An invalid permission disabled an entire nightly after merge&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/aminazar/slowcook/issues/383" rel="noopener noreferrer"&gt;Generated indentation caused persistent zero-job failures&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/nektos/act/issues/6095" rel="noopener noreferrer"&gt;A stale local schema rejected a new valid field&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first three are independent August 2026 reports of the exact &lt;code&gt;workflows: write&lt;/code&gt; mistake. In one case, ordinary YAML parsing and an eight-job test matrix both passed while GitHub silently stopped issue, cron, and manual triggers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current duplicate-key evidence
&lt;/h2&gt;

&lt;p&gt;This failure still appears in maintained projects.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/invoice-x/invoice2data/issues/756" rel="noopener noreferrer"&gt;invoice2data&lt;/a&gt; reports that template authors regularly repeat field keys expecting fallback behavior, which silently removes the first extraction rule.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/Kattis/problemtools/issues/462" rel="noopener noreferrer"&gt;Kattis problemtools&lt;/a&gt; records an in-the-wild duplicate validator flag.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/monarch-initiative/dismech/issues/8623" rel="noopener noreferrer"&gt;DisMech&lt;/a&gt; documented two merge-born duplicates from concurrent curation PRs; one broke &lt;code&gt;main&lt;/code&gt;, while another remained unnoticed until a whole-repository check.&lt;/p&gt;

&lt;p&gt;These are public project reports, not YAML Preflight customers or testimonials. They are the concrete failure class this free experiment checks.&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>devops</category>
      <category>yaml</category>
      <category>githubactions</category>
    </item>
  </channel>
</rss>
