mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
exclude credentials as kind key from hardcoded-credentials when the key looks like a dummy password
This commit is contained in:
@@ -30,7 +30,7 @@ where
|
||||
// exclude dummy passwords and templates
|
||||
not (
|
||||
sink.getNode().(Sink).(DefaultCredentialsSink).getKind() =
|
||||
["password", "credentials", "token"] and
|
||||
["password", "credentials", "token", "key"] and
|
||||
PasswordHeuristics::isDummyPassword(val)
|
||||
or
|
||||
sink.getNode().(Sink).getKind() = "authorization header" and
|
||||
|
||||
Reference in New Issue
Block a user