diff --git a/ql/lib/codeql/actions/Ast.qll b/ql/lib/codeql/actions/Ast.qll index 2e93187b6bf..8f04005be8f 100644 --- a/ql/lib/codeql/actions/Ast.qll +++ b/ql/lib/codeql/actions/Ast.qll @@ -23,7 +23,7 @@ class AstNode instanceof YamlNode { class Statement extends AstNode { /** Gets the workflow that this job is a part of. */ WorkflowStmt getEnclosingWorkflowStmt() { - exists(WorkflowStmt w | w.getAChildNode*() = this and result = w) + this = result.getAChildNode*() } }