Skip to content

Commit 710a753

Browse files
committed
Simplify composite action lookup
1 parent d85deef commit 710a753

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

actions/ql/src/Security/CWE-829/UnpinnedActionsTag.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ private predicate hasUsesContainerName(Uses uses, string name) {
4343
)
4444
)
4545
or
46-
exists(UsesStep step, CompositeAction action |
47-
uses = step and
48-
step.getEnclosingCompositeAction() = action and
46+
exists(CompositeAction action |
47+
uses.getEnclosingCompositeAction() = action and
4948
name = action.getLocation().getFile().getBaseName()
5049
)
5150
}

0 commit comments

Comments
 (0)