From 3c1bf55c9b2a8d4318c61dc0810a5b61650a7c76 Mon Sep 17 00:00:00 2001 From: Weston Steimel Date: Mon, 9 Mar 2026 09:05:28 +0000 Subject: [PATCH] disable wordfence id mapper Signed-off-by: Weston Steimel --- .../identifiers/providers/wordfence.py | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/anchore_security_cli/identifiers/providers/wordfence.py b/src/anchore_security_cli/identifiers/providers/wordfence.py index e997ab0..3b11e31 100644 --- a/src/anchore_security_cli/identifiers/providers/wordfence.py +++ b/src/anchore_security_cli/identifiers/providers/wordfence.py @@ -1,3 +1,4 @@ +from rich.pretty import d import logging import requests @@ -13,24 +14,26 @@ def __init__(self): name="Wordfence", ) - def _fetch(self) -> list[ProviderRecord]: - records = [] - logging.debug(f"Start downloading latest {self.name} content") - result = requests.get(self.url, timeout=10).json() - logging.debug(f"Finish downloading latest {self.name} content") - logging.debug(f"Start processing {self.name} alias records") - for r in result.values(): - cve = r.get("cve") - published = r.get("published") + # def _fetch(self) -> list[ProviderRecord]: + # records = [] + # logging.debug(f"Start downloading latest {self.name} content") + # result = requests.get(self.url, timeout=10).json() + # logging.debug(f"Finish downloading latest {self.name} content") + # logging.debug(f"Start processing {self.name} alias records") + # for r in result.values(): + # cve = r.get("cve") + # published = r.get("published") - if cve and published: - records.append( - ProviderRecord( - id=cve, - aliases=Aliases.from_list([cve, cve_to_gcve(cve)]), - published=self._parse_date(published), - ), - ) - logging.debug(f"Finish processing {self.name} alias records") + # if cve and published: + # records.append( + # ProviderRecord( + # id=cve, + # aliases=Aliases.from_list([cve, cve_to_gcve(cve)]), + # published=self._parse_date(published), + # ), + # ) + # logging.debug(f"Finish processing {self.name} alias records") + # return records - return records + def _fetch(self) -> list[ProviderRecord]: + return []