Skip to content

Commit b55e1ca

Browse files
committed
Fix dnstwist script
1 parent 1925ea2 commit b55e1ca

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/scripts/build_findings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const BODY_MIN = parseInt(process.env.BODY_MIN || "1500", 10); // "has content"
1818
const risky = (process.env.RISKY_KEYWORDS || "").split(",").map(w=>w.trim().toLowerCase()).filter(Boolean);
1919
const allow = (process.env.ALLOWLIST || "").split(",").map(w=>w.trim().toLowerCase()).filter(Boolean);
2020
const seeds = (process.env.WATCH_DOMAINS || "").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);
21+
const ignore = (process.env.IGNORE_DOMAINS || "").split(",").map(s=>s.trim().toLowerCase()).filter(Boolean);
2122

2223
// ---- helpers ----
2324
function indexBy(rows){
@@ -44,6 +45,7 @@ const seedLabels = seeds.map(sld);
4445
const allowSet = new Set([...allow, ...seeds]); // seeds implicitly allowed
4546
const isAllowed = (dom) => {
4647
const s = (dom || "").toLowerCase();
48+
if (ignore.some(i => s === i || s.endsWith("."+i))) return true;
4749
for (const base of allowSet) {
4850
if (s === base || s.endsWith("."+base)) return true;
4951
}

.github/workflows/dnstwist-monitor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
2222
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
2323
ALLOWLIST: ${{ secrets.ALLOWLIST }}
24+
IGNORE_DOMAINS: ${{ secrets.IGNORE_DOMAINS }}
2425

2526
# knobs
2627
LSH_THRESHOLD: "80"

0 commit comments

Comments
 (0)