<?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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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 duplicate-key demo — no signup&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The page opens with this broken sample ready. Click &lt;strong&gt;Run free preflight&lt;/strong&gt; to see the exact line and column, or paste your own YAML.&lt;/p&gt;

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

&lt;ul&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, execute workflows, or store the pasted document.&lt;/p&gt;

&lt;p&gt;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/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;

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