mirror of
https://github.com/github/codeql.git
synced 2026-02-24 02:43:40 +01:00
Whitelist variable name tokenImage
This commit is contained in:
@@ -12,7 +12,8 @@ class VariableWithSensitiveName extends Variable {
|
||||
VariableWithSensitiveName() {
|
||||
exists(string name | name = this.getName() |
|
||||
name.regexpMatch(getCommonSensitiveInfoRegex()) and
|
||||
not name.regexpMatch("(?i).*null.*")
|
||||
not name.regexpMatch("(?i).*null.*") and
|
||||
not name.matches("tokenImage") // appears in parser code generated by JavaCC
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user