github-action/no-top-level-env
Disallow using top-level env.
📖 Rule Details
This rule reports when a workflow has a top-level env property.
yaml
name: CI
jobs:
unit-test:
runs-on: ubuntu-latest
# Non top-level env
env:
SERVER: productioncorrect
yaml
name: CI
env:
SERVER: productionincorrect
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-github-action v0.0.6