From 924952a59b06d72014aba1371e1ddac020097c52 Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 4 Sep 2026 17:49:08 +0100 Subject: [PATCH] tests: add test to disallow 'github-pages-challenge' in a TXT record --- tests/records.test.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/records.test.js b/tests/records.test.js index c668f1dc30..4e537d5d9f 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -239,6 +239,11 @@ function validateRecordValues(t, data, file) { values.forEach((record, idx) => { t.true(typeof record === "string", `${file}: TXT record value should be a string at index ${idx}`); + t.false( + record.includes("github-pages-challenge"), + `${file}: TXT record cannot contain 'github-pages-challenge' at index ${idx}` + ); + if (record.startsWith("vc-domain-verify=")) { t.true( file.startsWith("_vercel."),