fix(ci): scope the short SAZ redaction assertion to source data (#12115)

Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
ShuaixinHuangandShuaixinHuang authored and GitHub committed 2026-11-18 21:09:23 -05:00
1 parent 8062a14a3a
commit b7059f8866
1 file changed
+5 -1
+5 -1
View File
@@ -792,9 +792,13 @@ it("excludes explicit literals from XML, HTTP byte views, member coordinates and
sha256: null,
content_base64: null,
});
// The Evidence ID hashes the already redacted record. Its hexadecimal
// spelling can contain the short session ID by coincidence.
const { evidence_id, ...redactedRecord } = result;
expect(JSON.stringify(redactedRecord)).not.toContain("0042");
const text = JSON.stringify(result);
for (const secret of [
"0042",
"unicode-",
"retained metadata",
compressedBody.toString("base64"),