Skip to content

Commit 4fc9e3f

Browse files
author
Alvaro Muñoz
committed
Add Composite action's outputs as a return node
1 parent 7c2386b commit 4fc9e3f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ql/lib/codeql/actions/dataflow/internal/DataFlowPublic.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ class ReturnNode extends ExprNode {
9696

9797
ReturnNode() {
9898
this.asExpr() = outputs and
99-
outputs = any(ReusableWorkflow s).getOutputs()
99+
(
100+
exists(ReusableWorkflow w | w.getOutputs() = outputs) or
101+
exists(CompositeAction a | a.getOutputs() = outputs)
102+
)
100103
}
101104

102105
ReturnKind getKind() { result = TNormalReturn() }

0 commit comments

Comments
 (0)