diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c155e8..8ea1c29 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,7 +39,6 @@ jobs: root / 'passive-scanner' / 'report' / 'index.html', root / 'online-passive-scanner' / 'index.html', root / 'online-passive-scanner' / 'report.html', - root / 'online-passive-scanner' / 'report-legacy.html', ] missing_html = [str(p) for p in html_files if not p.exists()] if missing_html: @@ -48,14 +47,6 @@ jobs: pattern = re.compile(r'(?:href|src)=["\']([^"\']+)["\']') missing_targets = [] - ignore_exact = { - 'link', - 'link_to_plugin', - } - ignore_regex = [ - re.compile(r'^http__.+\.html$'), - ] - for html_file in html_files: text = html_file.read_text(encoding='utf-8') for target in pattern.findall(text): @@ -75,12 +66,6 @@ jobs: if not normalized: continue - if normalized in ignore_exact: - continue - - if any(regex.match(normalized) for regex in ignore_regex): - continue - if normalized.startswith('/'): candidate = root / normalized[1:] else: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2cfc12e..dbe8b40 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,11 +48,8 @@ jobs: Path('passive-scanner/report/index.html'), Path('online-passive-scanner/index.html'), Path('online-passive-scanner/report.html'), - Path('online-passive-scanner/report-legacy.html'), ] pattern = re.compile(r'(?:href|src)=["\']([^"\']+)["\']') - ignore_exact = {'link', 'link_to_plugin'} - ignore_regex = [re.compile(r'^http__.+\.html$')] missing_targets = [] for html_file in html_files: @@ -74,12 +71,6 @@ jobs: if not normalized: continue - if normalized in ignore_exact: - continue - - if any(regex.match(normalized) for regex in ignore_regex): - continue - if normalized.startswith('/'): candidate = root / normalized[1:] else: diff --git a/README.md b/README.md index ccb3cf2..99e8c16 100644 --- a/README.md +++ b/README.md @@ -27,19 +27,16 @@ The generated output is written to `_site/` and should not be committed. The initial Jekyll migration preserves existing OWTF landing page content and formatting. Modernization changes should be made incrementally after parity sign-off. -## Passive scanner source +## Passive scanner routes -Passive scanner integration in this repository is pinned to upstream `owtf/online-passive-scanner`: - -- https://github.com/owtf/online-passive-scanner - -See `/docs/PASSIVE_SCANNER_SOURCE.md` for the integration contract. - -The scanner is vendored at `/online-passive-scanner/` and is accessible at: +The online passive scanner is now implemented as a Jekyll-processed Tailwind + vanilla JS experience in this repository: - `/online-passive-scanner/` +- `/online-passive-scanner/report.html` + +Compatibility routes are kept for older links and redirect to the online scanner routes: -A Jekyll-native launcher page is available at: +- `/passive-scanner/` -> `/online-passive-scanner/` +- `/passive-scanner/report/` -> `/online-passive-scanner/report.html` -- `/passive-scanner/` -- `/passive-scanner/report/` +See `/docs/PASSIVE_SCANNER_SOURCE.md` for implementation details and maintenance scope. diff --git a/_includes/header.html b/_includes/header.html index 4ea35b8..865d325 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,5 +1,5 @@