From 92ebc970516da02468bd8244a2719ba8df97de51 Mon Sep 17 00:00:00 2001 From: Martin Torp Date: Wed, 21 Jan 2026 12:02:12 +0100 Subject: [PATCH] Set the scan type to socket_tier1 when using the reachability flag --- CHANGELOG.md | 4 ++++ pyproject.toml | 4 ++-- socketsecurity/__init__.py | 2 +- socketsecurity/socketcli.py | 3 ++- uv.lock | 10 +++++----- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8ba70e..dffec7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.2.70 + +- Set the scan to `'socket_tier1'` when using the `--reach` flag. This ensures Tier 1 scans are properly integrated into the organization-wide alerts. + ## 2.2.69 - Added `--reach-enable-analysis-splitting` flag to enable analysis splitting (disabled by default). diff --git a/pyproject.toml b/pyproject.toml index f9eacab..79cea95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "socketsecurity" -version = "2.2.69" +version = "2.2.70" requires-python = ">= 3.10" license = {"file" = "LICENSE"} dependencies = [ @@ -16,7 +16,7 @@ dependencies = [ 'GitPython', 'packaging', 'python-dotenv', - "socketdev>=3.0.28,<4.0.0", + "socketdev>=3.0.29,<4.0.0", "bs4>=0.0.2", "markdown>=3.10", ] diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 8736004..0fa0e5b 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,3 +1,3 @@ __author__ = 'socket.dev' -__version__ = '2.2.69' +__version__ = '2.2.70' USER_AGENT = f'SocketPythonCLI/{__version__}' diff --git a/socketsecurity/socketcli.py b/socketsecurity/socketcli.py index 86367f4..194da44 100644 --- a/socketsecurity/socketcli.py +++ b/socketsecurity/socketcli.py @@ -463,7 +463,8 @@ def main_code(): committers=config.committers, make_default_branch=is_default_branch, set_as_pending_head=is_default_branch, - tmp=False + tmp=False, + scan_type='socket_tier1' if config.reach else 'socket' ) params.include_license_details = not config.exclude_license_details diff --git a/uv.lock b/uv.lock index 3101764..f8cbcd5 100644 --- a/uv.lock +++ b/uv.lock @@ -1250,20 +1250,20 @@ wheels = [ [[package]] name = "socketdev" -version = "3.0.28" +version = "3.0.29" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "requests" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/f8/db/3446da069f8f2e0235970fa3e1cbcc2cf9a2da9ab75bd965f00e7ab3c7ab/socketdev-3.0.28.tar.gz", hash = "sha256:60f8635502fa291a9bf4fb0f2a13c8dfeb1d3dc2dc395ec5265a1e2f4147cf52", size = 170539, upload-time = "2026-01-05T22:24:53.637Z" } +sdist = { url = "https://files.pythonhosted.org/packages/02/f4/a4434843e0f01da684d0d330f1b4b744abfad1ee4d6b6d5fddfa9228b122/socketdev-3.0.29.tar.gz", hash = "sha256:be201a9bd186da6ddae4725294d3cbf11b00ec76c96e46be38d78a569fde4af3", size = 170751, upload-time = "2026-01-21T09:15:57.465Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/bc/72/4bbd4a70e5fa317f4e33a134f5871793eeaba45e05b949685f3502e451b4/socketdev-3.0.28-py3-none-any.whl", hash = "sha256:61a9e09ab24180e7b033ad1e141110b90f1f714336b04f21c20035b901311229", size = 66681, upload-time = "2026-01-05T22:24:51.736Z" }, + { url = "https://files.pythonhosted.org/packages/db/08/f1cea3b342d8b9109f5792257e3f6c31c3ff53a1e42a87726a2acac65440/socketdev-3.0.29-py3-none-any.whl", hash = "sha256:c2f832a703bd61eb88a5e3f9b8079e62f7cd1352ec206a20a946c6dd34fa788e", size = 66783, upload-time = "2026-01-21T09:15:55.909Z" }, ] [[package]] name = "socketsecurity" -version = "2.2.65" +version = "2.2.69" source = { editable = "." } dependencies = [ { name = "bs4" }, @@ -1316,7 +1316,7 @@ requires-dist = [ { name = "python-dotenv" }, { name = "requests" }, { name = "ruff", marker = "extra == 'dev'", specifier = ">=0.3.0" }, - { name = "socketdev", specifier = ">=3.0.28,<4.0.0" }, + { name = "socketdev", specifier = ">=3.0.29,<4.0.0" }, { name = "twine", marker = "extra == 'dev'" }, { name = "uv", marker = "extra == 'dev'", specifier = ">=0.1.0" }, ]