GitHub Actions accepts invalid YAML

59 points by yossarian


olegkovalov

YAML moment. I’m not shocked at all.

val

Another fun thing with GitHub Actions' YAML is that they have an on key to define when the workflow should run. For example, in their quickstart they use:

on: [push]

but of course, this is YAML, so this is semantically equivalent to:

true: [push]

Fortunately, they also support this syntax for the sanity of people who generate their YAML, but it's undocumented:

'on': [push]
jaredkrinke

On GitHub's side, I'm not sure if they have a clean path towards spec conformance here.

Are you referring to the fact that fixing this parsing issue would break some users' existing workflows? Hopefully they don't go down the path of adding a "quirks mode" to the parser!

gulbanana

the concept of valid yaml is an oxymoron