Skip to main content

GA-B005: Empty env block

Info Best Practice

Why This Matters

Empty `env:` blocks add noise to workflow files without setting any variables. Remove them or add the intended environment variables.

How to Fix

Remove the empty env block or add variables

Before (incorrect)

env: {}

After (correct)

env:
  NODE_ENV: production

Rule Details

Rule Code
GA-B005
Severity
Info
Category
Best Practice

Related Rules