Shared: Fix for 'coauthor'.

This commit is contained in:
Geoffrey White
2026-05-06 12:06:55 +01:00
parent 213ab902cd
commit 6e2fb6f0ff
2 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ fn test_passwords(
sink(encoded_password);
sink(password_hash);
sink(passwordFile);
sink(coauthor); // $ SPURIOUS: sensitive=password
sink(coauthor);
sink(ms.harmless.as_str());
sink(ms.password_file_path.as_str());

View File

@@ -146,12 +146,12 @@ module HeuristicNames {
*
* We also filter out common words like `certain` and `concert`, since otherwise these could
* be matched by the certificate regular expressions. Same for `accountable` (account),
* `secretarial` (secret), `wildcard` (card).
* `secretarial` (secret), `wildcard` (card), `coauthor` (oauth).
*/
string notSensitiveRegexp() {
result =
"(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|random|((?<!un)(en))?(crypt|(?<!pass)code)|"
+ "certain|concert|secretar|wildcard|account(ant|ab|ing|ed)|(?<!pro)file|path|([_-]|\\b)url).*"
+ "certain|concert|secretar|wildcard|coauthor|account(ant|ab|ing|ed)|(?<!pro)file|path|([_-]|\\b)url).*"
}
/**