Commit Graph
79 Commits
Author SHA1 Message Date
SatoshiQaziMuhammed 767a92904d Sync the lists with polkadot-js/phishing every day, and publish them with checks (#4)
* feat: sync the lists with polkadot-js/phishing daily, and check them before publishing

The lists had not moved since January 2026, the site that serves them was
copied by hand, and the rebrand had turned five real phishing domains into
pezkuwichain.* names, unblocking them.

- scripts/syncUpstream.mjs and sync-upstream.yml take upstream's lists every
  day, lay pezkuwi/overlay.json over them, and commit to master. A day out of
  bounds (too many sites unblocked or added, scam addresses dropped, one of our
  domains blocked, one of our entries lost) writes nothing and opens an issue.
- pezkuwi/overlay.json holds our own entries with their reasons: the five
  pezkuwichain.* names stay blocked on purpose, and our domains are protected.
- scripts/lists.mjs holds the rules; scripts/lists.test.mjs tests them and the
  sync end to end; scripts/checkLists.mjs checks the committed files, including
  that they are what sortAll writes. lists.yml runs all three.
- pezkuwi/host/ is what phishing.pezkuwichain.io runs: it pulls master hourly
  and refuses a rewritten history, a blocked own domain, a shrink over 2%, or
  shards that disagree, with a sandbox test of each refusal.
- sortAll strips a trailing dot. Upstream's 817 "scam.xyz." entries were filed
  under an empty top-level domain in all/all.json, where checkIfDenied never
  looks; 816 repeated a listed name, and prenads.xyz was blocked nowhere else.
- sortAll uses Node's own directory functions instead of @pezkuwi/dev, so the
  sync and the checks run without installing the build toolchain.
- The auto-approve, auto-merge and crosscheck workflows, and the IPFS job,
  depended on tokens and secrets this repository does not have; removed. The
  remaining workflows are pinned to commits, with no default permissions and
  a timeout on every job.

* chore(lists): first sync with polkadot-js/phishing

Written by scripts/syncUpstream.mjs from upstream bf5e7c6:
658 sites added; nodelinkapp.xyz, org.in and terra-claim.com unblocked by
upstream; the five polkadot-js domains the rebrand had renamed blocked again;
816 duplicate "scam.xyz." entries folded into their names and the stray
all/all.json gone. 54,051 blocked sites, 279 scam addresses.

* fix(lists): commit the .build shard, and refuse a shard git ignores

.gitignore held "build/", which also matched all/build/all.json, the shard of
the .build top-level domain. Every sort wrote it and no commit held it, so the
eight .build scam sites were never published; upstream has the same gap. The
directory is excluded from the ignore rule, the shard is committed, and
checkLists.mjs now fails on any shard git would ignore (with the old rule
restored it does).

Also clears the repository's lint on lists.test.mjs: imports sorted, and
node:test's describe and it calls marked void.

* test(lists): await describe and it, as the repository's lint requires

no-floating-promises requires the promises node:test's describe and it return
to be handled, and no-void forbids handling them with void. Awaited, the 25
cases run as before.
2026-09-13 17:34:51 +04:00
github-actions[bot] 4d0b7de177 [CI Skip] release/stable 0.10.3
skip-checks: true
2022-03-19 12:40:04 +00:00
Jaco 60bd4b6d64 Split addition tests, expand non-url checks (#885)
* Split addition tests, expand non-url checks

* Spelling

* Additional valid url check

* Meta changes
2022-01-02 10:20:34 +02:00
github-actions[bot] 5ed9b8782e [CI Skip] release/stable 0.6.597
skip-checks: true
2021-12-31 06:49:38 +00:00
github-actions[bot] 7f69c32a0f [CI Skip] release/stable 0.6.596
skip-checks: true
2021-12-30 10:06:50 +00:00
github-actions[bot] 321cf45daf [CI Skip] release/stable 0.6.595
skip-checks: true
2021-12-30 06:39:53 +00:00
github-actions[bot] eb0f39f83c [CI Skip] release/stable 0.6.594
skip-checks: true
2021-12-29 14:51:25 +00:00
github-actions[bot] 89d4135b57 [CI Skip] release/stable 0.6.593
skip-checks: true
2021-12-29 11:28:56 +00:00
github-actions[bot] 591bf9f69d [CI Skip] release/stable 0.6.592
skip-checks: true
2021-12-29 10:38:12 +00:00
github-actions[bot] 3a1c3d1891 [CI Skip] release/stable 0.6.590
skip-checks: true
2021-12-28 16:52:43 +00:00
github-actions[bot] ee94914883 [CI Skip] release/stable 0.6.589
skip-checks: true
2021-12-28 14:35:48 +00:00
github-actions[bot] 855cce042e [CI Skip] release/stable 0.6.587
skip-checks: true
2021-12-28 12:37:22 +00:00
github-actions[bot] 3ef0f45602 [CI Skip] release/stable 0.6.586
skip-checks: true
2021-12-28 10:08:54 +00:00
github-actions[bot] 484d90a4a9 [CI Skip] release/stable 0.6.585
skip-checks: true
2021-12-28 08:18:38 +00:00
github-actions[bot] 24b4c4d052 [CI Skip] release/stable 0.6.584
skip-checks: true
2021-12-27 15:05:10 +00:00
github-actions[bot] 7139e1547f [CI Skip] release/stable 0.6.583
skip-checks: true
2021-12-27 13:01:09 +00:00
github-actions[bot] 25410aaf37 [CI Skip] release/stable 0.6.582
skip-checks: true
2021-12-27 07:36:37 +00:00
github-actions[bot] 46b0db4410 [CI Skip] release/stable 0.6.581
skip-checks: true
2021-12-26 23:36:46 +00:00
github-actions[bot] 9d6c00f210 [CI Skip] release/stable 0.6.580
skip-checks: true
2021-12-26 17:35:36 +00:00
github-actions[bot] a2c0f73d0a [CI Skip] release/stable 0.6.578
skip-checks: true
2021-12-26 09:02:04 +00:00
github-actions[bot] 4bdd1d101f [CI Skip] release/stable 0.6.577
skip-checks: true
2021-12-26 08:53:28 +00:00
github-actions[bot] 49a48a379f [CI Skip] release/stable 0.6.575
skip-checks: true
2021-12-25 05:28:03 +00:00
github-actions[bot] cbd96b12e6 [CI Skip] release/stable 0.6.574
skip-checks: true
2021-12-24 12:04:02 +00:00
github-actions[bot] 6df1dc9e4a [CI Skip] release/stable 0.6.572
skip-checks: true
2021-12-24 06:08:21 +00:00
github-actions[bot] 37c5ecdf74 [CI Skip] release/stable 0.6.571
skip-checks: true
2021-12-24 06:06:23 +00:00
github-actions[bot] c7e64140ac [CI Skip] release/stable 0.6.570
skip-checks: true
2021-12-24 06:03:11 +00:00
github-actions[bot] f77c8357e2 [CI Skip] release/stable 0.6.569
skip-checks: true
2021-12-23 11:14:02 +00:00
github-actions[bot] 0c8b4cff99 [CI Skip] release/stable 0.6.567
skip-checks: true
2021-12-23 06:58:17 +00:00
github-actions[bot] b283e0b63f [CI Skip] release/stable 0.6.566
skip-checks: true
2021-12-22 08:19:05 +00:00
github-actions[bot] 9478c5702e [CI Skip] release/stable 0.6.565
skip-checks: true
2021-12-22 05:17:16 +00:00
github-actions[bot] 1495782c96 [CI Skip] release/stable 0.6.564
skip-checks: true
2021-12-21 05:23:38 +00:00
github-actions[bot] c130cf9dad [CI Skip] release/stable 0.6.563
skip-checks: true
2021-12-20 13:03:21 +00:00
github-actions[bot] 0e433fcd5d [CI Skip] release/stable 0.6.562
skip-checks: true
2021-12-20 11:42:40 +00:00
github-actions[bot] 5315dcf6f6 [CI Skip] release/stable 0.6.560
skip-checks: true
2021-12-20 08:52:18 +00:00
github-actions[bot] 4dfd207636 [CI Skip] release/stable 0.6.559
skip-checks: true
2021-12-19 17:34:45 +00:00
github-actions[bot] 4955dd42a8 [CI Skip] release/stable 0.6.558
skip-checks: true
2021-12-18 09:47:52 +00:00
github-actions[bot] a855f32f70 [CI Skip] release/stable 0.6.557
skip-checks: true
2021-12-18 05:45:01 +00:00
github-actions[bot] d7703eb143 [CI Skip] release/stable 0.6.556
skip-checks: true
2021-12-17 21:06:16 +00:00
github-actions[bot] 0802b90cd9 [CI Skip] release/stable 0.6.555
skip-checks: true
2021-12-17 16:35:46 +00:00
github-actions[bot] 17502b5835 [CI Skip] release/stable 0.6.554
skip-checks: true
2021-12-17 09:40:06 +00:00
github-actions[bot] 9ebb3d361e [CI Skip] release/stable 0.6.553
skip-checks: true
2021-12-17 03:49:45 +00:00
github-actions[bot] 7aa8738fb0 [CI Skip] release/stable 0.6.552
skip-checks: true
2021-12-16 19:32:00 +00:00
github-actions[bot] c65cc3570b [CI Skip] release/stable 0.6.551
skip-checks: true
2021-12-16 07:24:05 +00:00
github-actions[bot] cb1ea105a3 [CI Skip] release/stable 0.6.550
skip-checks: true
2021-12-16 04:22:58 +00:00
github-actions[bot] 781c6192e2 [CI Skip] release/stable 0.6.549
skip-checks: true
2021-12-15 18:57:07 +00:00
github-actions[bot] b5c6aa35d4 [CI Skip] release/stable 0.6.548
skip-checks: true
2021-12-15 16:16:18 +00:00
github-actions[bot] 37d6cb6965 [CI Skip] release/stable 0.6.547
skip-checks: true
2021-12-15 10:37:06 +00:00
github-actions[bot] c34dc926f4 [CI Skip] release/stable 0.6.546
skip-checks: true
2021-12-15 09:50:31 +00:00
github-actions[bot] 55a8d7d092 [CI Skip] release/stable 0.6.545
skip-checks: true
2021-12-15 08:57:15 +00:00
github-actions[bot] 55f0c8e051 [CI Skip] release/stable 0.6.544
skip-checks: true
2021-12-15 08:43:45 +00:00