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