File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
ql/lib/codeql/actions/dataflow/internal Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ class DataFlowCallable instanceof Cfg::CfgScope {
98
98
string getName ( ) {
99
99
if this instanceof ReusableWorkflow
100
100
then
101
+ //result = this.(ReusableWorkflow).getLocation().getFile().getRelativePath()
101
102
result =
102
103
this .( ReusableWorkflow )
103
104
.getLocation ( )
@@ -107,7 +108,17 @@ class DataFlowCallable instanceof Cfg::CfgScope {
107
108
.getLocation ( )
108
109
.getFile ( )
109
110
.getRelativePath ( )
110
- .indexOf ( "/.github/workflows" ) + 1 )
111
+ .indexOf ( "/.github/workflows" ) + 1 ) or
112
+ result =
113
+ this .( ReusableWorkflow )
114
+ .getLocation ( )
115
+ .getFile ( )
116
+ .getRelativePath ( )
117
+ .suffix ( this .( ReusableWorkflow )
118
+ .getLocation ( )
119
+ .getFile ( )
120
+ .getRelativePath ( )
121
+ .indexOf ( ".github/workflows" ) )
111
122
else
112
123
if this instanceof CompositeAction
113
124
then
You can’t perform that action at this time.
0 commit comments