diff --git a/Github-CVE-Listener.py b/Github-CVE-Listener.py index 08e7090..419119b 100644 --- a/Github-CVE-Listener.py +++ b/Github-CVE-Listener.py @@ -132,8 +132,6 @@ def getid(respJson): exit(0) readme = "https://raw.githubusercontent.com/" + str(respJson["items"][0]["full_name"]) + "/main/README.md" readme_content = requests.get(readme).text - if str(cve_id) == "[]" and respJson["items"][0]["description"]: - cve_id = cve_id + cve_des if str(cve_id) == "[]": cve_id = cve_id + re.findall('(CVE\-\d+\-\d+)', readme_content, flags=re.IGNORECASE) if str(cve_id) != "[]":