Skip to content

Commit a5e1ba6

Browse files
committed
Apply quick wins: hygiene, CI QA workflow, and detection notes
1 parent 4ce8544 commit a5e1ba6

3 files changed

Lines changed: 21 additions & 24 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,12 @@ jobs:
1616
with:
1717
python-version: '3.x'
1818

19-
- name: Install Python deps (if present)
19+
- name: Install QA dependencies
2020
run: |
21-
if [ -f requirements.txt ]; then
22-
python -m pip install --upgrade pip
23-
pip install -r requirements.txt || true
24-
fi
25-
pip install pytest || true
21+
sudo apt-get update
22+
sudo apt-get install -y shellcheck
2623
27-
- name: Python syntax check
24+
- name: Run repository QA checks
2825
run: |
29-
py_files=$(find . -type f -name "*.py")
30-
if [ -n "$py_files" ]; then
31-
python -m py_compile $py_files
32-
fi
33-
34-
- name: Shell syntax check
35-
run: |
36-
sh_files=$(find . -type f -name "*.sh")
37-
if [ -n "$sh_files" ]; then
38-
for f in $sh_files; do bash -n "$f"; done
39-
fi
40-
41-
- name: Run pytest (if tests exist)
42-
run: |
43-
if [ -d tests ]; then
44-
pytest -q || true
45-
fi
26+
chmod +x ./qa_check.sh
27+
./qa_check.sh

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@
33
*.csv
44
*.json
55
*.out
6+
7+
# Python cache
8+
__pycache__/
9+
*.pyc
10+
11+
# OS noise
12+
.DS_Store

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ A DNS reconnaissance and mail-security toolkit for rapid defensive triage workfl
2121
- Bulk lookup workflows for subdomains and registration checks
2222
- Cloudflare detection with resolver and DoH fallback
2323

24+
## Detection notes and limitations
25+
26+
- Cloudflare detection is signal-based, not authoritative attribution.
27+
- IP range checks use representative Cloudflare ranges and may not be exhaustive.
28+
- Header checks depend on live HTTP(S) responses and can be affected by WAF behaviour, redirects, or origin restrictions.
29+
- DNS data can vary by resolver, cache state, and propagation timing.
30+
- Treat output as triage evidence and verify critical findings with secondary sources.
31+
2432
## Features
2533

2634
- NS, MX, A/AAAA, TXT, CAA, DMARC, SPF checks

0 commit comments

Comments
 (0)