mirror of
https://github.com/github/codeql.git
synced 2026-03-22 15:36:48 +01:00
Update ql/lib/codeql/actions/Ast.qll
Co-authored-by: Jorge <46056498+jorgectf@users.noreply.github.com>
This commit is contained in:
@@ -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*()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user