Skip to main content

GA-S006: Invalid format

Warning Schema

Why This Matters

A value does not match any of the expected formats defined by the schema. The GitHub Actions schema uses oneOf/anyOf to allow multiple valid shapes for certain properties (e.g., `on` can be a string, array, or object). When a value matches none of the alternatives, this error is raised. Check the property documentation for accepted formats.

How to Fix

Rewrite the value to match one of the accepted formats.

Before (incorrect)

on:
  push:
    branches: main

After (correct)

on:
  push:
    branches: [main]

Rule Details

Rule Code
GA-S006
Severity
Warning
Category
Schema

Related Rules