From 15339fb457d99e28014929e014d8a36b37e2fa25 Mon Sep 17 00:00:00 2001 From: blupants Date: Fri, 26 Jul 2024 17:52:52 -0500 Subject: [PATCH] Fixed infinite loop bug on slack scan, deprecated Python 3.8 support --- setup.py | 6 +++--- src/n0s1/__init__.py | 2 +- src/n0s1/controllers/slack_controller.py | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 1d9ec3a..fd1b735 100644 --- a/setup.py +++ b/setup.py @@ -42,15 +42,15 @@ def get_version(): "Topic :: System :: Monitoring", "Topic :: Utilities", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ], # Classifiers help users find your project by categorizing it https://pypi.org/classifiers/ - keywords="security, cybersecurity, scanner, secret scanner, secret leak, data leak, Slack, Jira, Confluence, Asana, Wrike, Linear, security scanner", + keywords="security, cybersecurity, scanner, secret scanner, secret leak, data leak, Slack, Jira, Confluence, Asana, Wrike, Linear, security scanner, data loss prevention", package_dir={"": "src"}, packages=find_packages(where="src"), - python_requires=">=3.8, <4", + python_requires=">=3.9, <4", # For an analysis of "install_requires" vs pip's requirements files see: # https://packaging.python.org/en/latest/requirements.html diff --git a/src/n0s1/__init__.py b/src/n0s1/__init__.py index c916e68..edb5a8e 100644 --- a/src/n0s1/__init__.py +++ b/src/n0s1/__init__.py @@ -1 +1 @@ -__version__ = "1.0.21" +__version__ = "1.0.22" diff --git a/src/n0s1/controllers/slack_controller.py b/src/n0s1/controllers/slack_controller.py index cd8cde1..11441a9 100644 --- a/src/n0s1/controllers/slack_controller.py +++ b/src/n0s1/controllers/slack_controller.py @@ -153,7 +153,6 @@ def run_slack_query(self, query): yield messages while len(cursor) > 0: - cursor = "" time.sleep(0.2) if response := self.search_with_rate_limit(query=query, sort="timestamp", cursor=cursor): messages = response.get("messages", {}).get("matches", [])