fix(secrets): scan typed JSON collision values

This commit is contained in:
Mathews-Tom
2026-07-11 22:31:49 +05:30
parent 331e7bea65
commit 2e4e215da2
4 changed files with 73 additions and 6 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ function collectShareRegexSecretValues(o: SecretObfuscator, data: SessionData):
for (const item of value) addJsonStrings(item);
return;
}
if (!isRecord(value) || value.type === "image") return;
if (!isRecord(value)) return;
for (const item of Object.values(value)) addJsonStrings(item);
};
const addContent = (content: string | (TextContent | ImageContent)[]): void => {