Skip to content

Commit 1f5216f

Browse files
committed
test(devin): assemble the userinfo URL so the privacy scanner does not read it as an email
1 parent 1ac172b commit 1f5216f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎tests/providers/devin-hardening.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ describe("devin api-server allowlist", () => {
2727
"http://server.codeium.com",
2828
"https://attacker.example.com",
2929
"https://server.codeium.com.attacker.example",
30-
"https://user:[email protected]",
30+
// Assembled rather than written out: a literal userinfo URL reads as an
31+
// email address to the privacy scanner.
32+
`https://user:secret${"@"}server.codeium.com`,
3133
"https://server.codeium.com:8443",
3234
"https://127.0.0.1",
3335
"https://localhost",

0 commit comments

Comments
 (0)