mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Add more poisonable steps
This commit is contained in:
@@ -43,12 +43,19 @@ class LocalCommandExecutionRunStep extends PoisonableStep, Run {
|
||||
or
|
||||
// sh xxxx
|
||||
cmd = line.regexpCapture("(^|\\s+)(ba|z|fi)?sh\\s+(.*)", 3)
|
||||
or
|
||||
// node xxxx
|
||||
cmd = line.regexpCapture("(^|\\s+)(node|python|ruby|go)\\s+(.*)", 3)
|
||||
)
|
||||
}
|
||||
|
||||
string getCommand() { result = cmd }
|
||||
}
|
||||
|
||||
class LocalActionUsesStep extends PoisonableStep, UsesStep {
|
||||
LocalActionUsesStep() { this.getCallee().matches("./%") }
|
||||
}
|
||||
|
||||
class EnvVarInjectionRunStep extends PoisonableStep, Run {
|
||||
EnvVarInjectionRunStep() {
|
||||
exists(string value |
|
||||
|
||||
Reference in New Issue
Block a user