Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0497e60

Browse files
committed
JS: Model actions/exec
1 parent cb9b01c commit 0497e60

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

javascript/ql/lib/semmle/javascript/frameworks/ActionsLib.qll

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ private class GitHubActionsSource extends RemoteFlowSource {
4040

4141
override string getSourceType() { result = "GitHub Actions input" }
4242
}
43+
44+
private class ExecActionsCall extends SystemCommandExecution, DataFlow::CallNode {
45+
ExecActionsCall() {
46+
this = API::moduleImport("@actions/exec").getMember(["exec", "getExecOutput"]).getACall()
47+
}
48+
49+
override DataFlow::Node getACommandArgument() { result = this.getArgument(0) }
50+
51+
override DataFlow::Node getArgumentList() { result = this.getArgument(1) }
52+
53+
override DataFlow::Node getOptionsArg() { result = this.getArgument(2) }
54+
55+
override predicate isSync() { none() }
56+
}

0 commit comments

Comments
 (0)