Skip to main content

META_CONDITION

Constant META_CONDITION 

Source
pub const META_CONDITION: &str = "condition";
Expand description

Step-level metadata: the AND-joined chain of condition: expressions that gate this step’s runtime execution (stage condition, then job condition, then step condition, joined with AND). Stamped by parsers that surface runtime gating expressions — currently the ADO parser (stage / job / step condition:). Presence of this key means the step is NOT unconditionally reachable on every trigger; the runtime evaluator decides via expression (e.g. eq(variables['Build.SourceBranch'], 'refs/heads/main')). Consumed by apply_compensating_controls to downgrade severity on findings whose firing step is gated behind a conditional.