mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
13 lines
355 B
Plaintext
13 lines
355 B
Plaintext
import codeql.ruby.Frameworks
|
|
import codeql.ruby.Concepts
|
|
import codeql.ruby.DataFlow
|
|
|
|
query predicate commandExecutions(
|
|
SystemCommandExecution execution, DataFlow::Node arg, boolean isShellInterpreted
|
|
) {
|
|
arg = execution.getAnArgument() and
|
|
if execution.isShellInterpreted(arg)
|
|
then isShellInterpreted = true
|
|
else isShellInterpreted = false
|
|
}
|