Skip to main content

GA-S004: Missing required field

Error Schema

Why This Matters

A required property is missing from the workflow file. Every workflow must have `on` (trigger events) and `jobs` at the top level. Each job requires `runs-on` (or `uses` for reusable workflows) and `steps`. Missing required fields prevent the workflow from running.

How to Fix

Add the missing required property.

Before (incorrect)

on: push
jobs:
  build:
    steps:
      - run: echo hello

After (correct)

on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - run: echo hello

Rule Details

Rule Code
GA-S004
Severity
Error
Category
Schema

Related Rules