Shared: Fix for 'api_tok'.

This commit is contained in:
Geoffrey White
2026-05-06 12:04:59 +01:00
parent b60ce3cf04
commit 213ab902cd
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ fn test_passwords(
sink(oauth); // $ sensitive=password
sink(one_time_code); // $ MISSING: sensitive=password
sink(api_token); // $ sensitive=password
sink(api_tok); // $ MISSING: sensitive=password
sink(api_tok); // $ sensitive=password
sink(ms); // $ MISSING: sensitive=password
sink(ms.password.as_str()); // $ sensitive=password

View File

@@ -76,7 +76,7 @@ module HeuristicNames {
string maybePassword() {
result =
"(?is).*(pass(wd|word|code|.?phrase)(?!.*question)|(auth(entication|ori[sz]ation)?).?key|oauth|"
+ "api.?(key|token)|([_-]|\\b)mfa([_-]|\\b)).*"
+ "api.?(key|tok)|([_-]|\\b)mfa([_-]|\\b)).*"
}
/**