hygiene/no-environment-literals

Environment names and hosts baked into a workflow have to be edited by hand to promote it; use $env.

Departmenthygiene
Classquality
Recommendedwarn
Fixableno

Options

{
  "type": "object",
  "properties": {
    "patterns": {
      "type": "array"
    },
    "urlHosts": {
      "type": "boolean"
    }
  }
}

Messages

Message IDTemplate
envLiteralNode "{{name}}" names an environment in "{{parameter}}" ("{{match}}"); read it from $env instead.
hardcodedHostNode "{{name}}" hardcodes host "{{host}}", which is parameterised elsewhere in this workflow; use $env here too.