Skip to main content

GA-L005: Invalid event config

Error Semantic

Why This Matters

The `on:` trigger configuration references an unknown event type or uses an invalid sub-key for the specified event. GitHub will reject this workflow.

How to Fix

Use a valid event name and correct sub-keys for that event.

Before (incorrect)

on:
  push:
    branch: main

After (correct)

on:
  push:
    branches: [main]

Rule Details

Rule Code
GA-L005
Severity
Error
Category
Semantic

Related Rules