Skip to content

Commit

Permalink
Merge pull request #25 from spark1security/ms/slack-bugfix
Browse files Browse the repository at this point in the history
Fixed slack scan infinite loop bug, deprecated Python 3.8 support
  • Loading branch information
blupants authored Jul 26, 2024
2 parents 90f1490 + 15339fb commit 72c4bc7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/n0s1/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.21"
__version__ = "1.0.22"
1 change: 0 additions & 1 deletion src/n0s1/controllers/slack_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", [])
Expand Down

0 comments on commit 72c4bc7

Please sign in to comment.