зеркало из https://github.com/github/codeql.git
JS: Model actions/exec
This commit is contained in:
Родитель
cb9b01cbb7
Коммит
0497e60ce2
|
@ -40,3 +40,17 @@ private class GitHubActionsSource extends RemoteFlowSource {
|
|||
|
||||
override string getSourceType() { result = "GitHub Actions input" }
|
||||
}
|
||||
|
||||
private class ExecActionsCall extends SystemCommandExecution, DataFlow::CallNode {
|
||||
ExecActionsCall() {
|
||||
this = API::moduleImport("@actions/exec").getMember(["exec", "getExecOutput"]).getACall()
|
||||
}
|
||||
|
||||
override DataFlow::Node getACommandArgument() { result = this.getArgument(0) }
|
||||
|
||||
override DataFlow::Node getArgumentList() { result = this.getArgument(1) }
|
||||
|
||||
override DataFlow::Node getOptionsArg() { result = this.getArgument(2) }
|
||||
|
||||
override predicate isSync() { none() }
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче