Update ql/lib/codeql/actions/Ast.qll

Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com>
This commit is contained in:
Alvaro Muñoz
2024-02-21 16:50:44 +01:00
committed by GitHub
parent a28f8e90f0
commit 3d5567d698

View File

@@ -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*()
}
}