Remove confirmed dead PoC links during metadata refresh

This commit is contained in:
0xMarcio committed 2026-10-22 13:26:33 +02:00
1 parent 157f2afd8f
commit 0fdc3cd575
14 files changed
+567 -127

No files matched your search

+3
View File
@@ -167,6 +167,9 @@ def section_bounds(text: str, header: str) -> tuple[int, int] | None:
def apply_to_markdown(cve: str, url: str, dry_run: bool) -> str:
"""Add the template link to one CVE entry. Returns what happened."""
import link_health
if link_health.unavailable(url):
return "unchanged"
path = CVES / cve.split("-")[1] / f"{cve}.md"
if not path.exists():
return "absent"