tests: add test to disallow 'github-pages-challenge' in a TXT record

This commit is contained in:
Roman authored and GitHub committed 2026-09-04 17:49:08 +01:00
1 parent cf19d979ba
commit 924952a59b
1 file changed
+5
+5
View File
@@ -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."),