mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-15 04:18:51 +00:00
Merge pull request #50796 from is-a-dev/roman/gh-txt-record-test
tests: add test to disallow 'github-pages-challenge' in a TXT record
This commit is contained in:
2 files changed
+6
-4
No files matched your search
@@ -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."),
|
||||
|
||||
Reference in new issue
Block a user