diff --git a/powershell/ql/lib/semmle/code/powershell/ast/internal/Variable.qll b/powershell/ql/lib/semmle/code/powershell/ast/internal/Variable.qll index 89fc6d2bba1..b9791ab06bd 100644 --- a/powershell/ql/lib/semmle/code/powershell/ast/internal/Variable.qll +++ b/powershell/ql/lib/semmle/code/powershell/ast/internal/Variable.qll @@ -59,8 +59,9 @@ module Private { PipelineParameterImpl() { exists(int index | - i = FunParam(index) and - any(Synthesis s).pipelineParameterHasIndex(super.getDeclaringScopeImpl(), index) + i = FunParam(pragma[only_bind_into](index)) and + any(Synthesis s) + .pipelineParameterHasIndex(super.getDeclaringScopeImpl(), pragma[only_bind_into](index)) ) }