Skip to main content

GA-S005: Invalid enum value

Warning Schema

Why This Matters

A value does not match any of the allowed options defined in the schema. Common examples include misspelled event types in `on:` (e.g., `pushs` instead of `push`) or invalid permission levels (e.g., `execute` instead of `read` or `write`). The workflow may be accepted by GitHub but will not behave as expected.

How to Fix

Replace the value with one of the allowed options.

Before (incorrect)

permissions:
  contents: execute

After (correct)

permissions:
  contents: read

Rule Details

Rule Code
GA-S005
Severity
Warning
Category
Schema

Related Rules