mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
JS: Model actions/exec
This commit is contained in:
@@ -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() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user