Skip to main content

GA-S002: Unknown property

Error Schema

Why This Matters

The workflow file contains a property that is not recognized by the GitHub Actions schema. This usually indicates a typo in a key name (e.g., `run-on` instead of `runs-on`) or using a property at the wrong level of nesting. GitHub will ignore the unknown property, which may cause the workflow to behave unexpectedly.

How to Fix

Remove or rename the unknown property to a valid GitHub Actions key.

Before (incorrect)

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

After (correct)

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

Rule Details

Rule Code
GA-S002
Severity
Error
Category
Schema

Related Rules