Quick answer

CI config files (GitHub Actions, GitLab CI) are YAML.

CI Config Invalid YAML

CI config files (GitHub Actions, GitLab CI) are YAML. Invalid YAML syntax—wrong indentation, missing colons, or bad quotes—causes the linter or runner to fail.

Common causes

How to fix

Examples

Bad

on: push
jobs:
  build:
	  runs-on: ubuntu-latest

Good

on: push
jobs:
  build:
    runs-on: ubuntu-latest

FAQ

Why does my GitHub Actions workflow fail with YAML error?
Workflows are YAML; check indentation (spaces only), colons, and quotes. Use an online CI config linter to locate the error.
Can I use tabs in .github/workflows YAML?
No. Use spaces only for indentation; tabs often cause parse errors.

Fix it now

Try in validator (prefill this example)

Related

All tools · Canonical