isQualifyingSubExpression reports whether expr is a simple property-access chain (matching simpleIdentifierRegex) that starts with needs.*, steps.*, or inputs.*. These are the sub-expressions for which the runtime evaluator looks up a deterministic GH_AW_* environment variable name.
(expr string)
| 325 | // These are the sub-expressions for which the runtime evaluator looks up a deterministic |
| 326 | // GH_AW_* environment variable name. |
| 327 | func isQualifyingSubExpression(expr string) bool { |
| 328 | return expr != "" && |
| 329 | simpleIdentifierRegex.MatchString(expr) && |
| 330 | runtimeEvalEnvVarPrefixRegex.MatchString(expr) |
| 331 | } |
| 332 | |
| 333 | // extractTerminalSubExpressions returns the simple-identifier sub-expressions from a |
| 334 | // compound expression (one containing `||` or `&&` operators, and optionally parentheses) |
no outgoing calls
no test coverage detected