mirror of
https://github.com/0xMarcio/cve.git
synced 2026-10-27 16:51:03 +00:00
Remove confirmed dead PoC links during metadata refresh
This commit is contained in:
1 parent
157f2afd8f
commit
0fdc3cd575
14 files changed
+567
-127
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user