mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
Merge pull request #85 from github/improve_reusable_workflow_calls
Improve reusable workflow calls
This commit is contained in:
@@ -98,6 +98,7 @@ class DataFlowCallable instanceof Cfg::CfgScope {
|
||||
string getName() {
|
||||
if this instanceof ReusableWorkflow
|
||||
then
|
||||
//result = this.(ReusableWorkflow).getLocation().getFile().getRelativePath()
|
||||
result =
|
||||
this.(ReusableWorkflow)
|
||||
.getLocation()
|
||||
@@ -107,7 +108,17 @@ class DataFlowCallable instanceof Cfg::CfgScope {
|
||||
.getLocation()
|
||||
.getFile()
|
||||
.getRelativePath()
|
||||
.indexOf("/.github/workflows") + 1)
|
||||
.indexOf("/.github/workflows") + 1) or
|
||||
result =
|
||||
this.(ReusableWorkflow)
|
||||
.getLocation()
|
||||
.getFile()
|
||||
.getRelativePath()
|
||||
.suffix(this.(ReusableWorkflow)
|
||||
.getLocation()
|
||||
.getFile()
|
||||
.getRelativePath()
|
||||
.indexOf(".github/workflows"))
|
||||
else
|
||||
if this instanceof CompositeAction
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user