File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -500,15 +500,10 @@ class InputsCtxAccessExpr extends CtxAccessExpr {
500
500
override string getFieldName ( ) { result = fieldName }
501
501
502
502
override Expression getRefExpr ( ) {
503
- exists ( ReusableWorkflowStmt w |
504
- w .getLocation ( ) .getFile ( ) = this .getLocation ( ) .getFile ( ) and
505
- w .getInputsStmt ( ) .getInputExpr ( fieldName ) = result
506
- )
503
+ result .getLocation ( ) .getFile ( ) = this .getLocation ( ) .getFile ( ) and
504
+ exists ( ReusableWorkflowStmt w | w .getInputsStmt ( ) .getInputExpr ( fieldName ) = result )
507
505
or
508
- exists ( CompositeActionStmt a |
509
- a .getLocation ( ) .getFile ( ) = this .getLocation ( ) .getFile ( ) and
510
- a .getInputsStmt ( ) .getInputExpr ( fieldName ) = result
511
- )
506
+ exists ( CompositeActionStmt a | a .getInputsStmt ( ) .getInputExpr ( fieldName ) = result )
512
507
}
513
508
}
514
509
@@ -528,6 +523,7 @@ class EnvCtxAccessExpr extends CtxAccessExpr {
528
523
override string getFieldName ( ) { result = fieldName }
529
524
530
525
override Expression getRefExpr ( ) {
526
+ result .getLocation ( ) .getFile ( ) = this .getLocation ( ) .getFile ( ) and
531
527
exists ( JobUsesExpr s | s .getEnvExpr ( fieldName ) = result )
532
528
or
533
529
exists ( StepUsesExpr s | s .getEnvExpr ( fieldName ) = result )
You can’t perform that action at this time.
0 commit comments