From ffcc07b7e2566ad915a52cdac270915104955cd6 Mon Sep 17 00:00:00 2001 From: jdalton Date: Thu, 27 Aug 2026 14:43:41 -0400 Subject: [PATCH 1/2] feat(user-agent): rename client to socket-python-cli Use one client name for CLI and SDK requests. Preserve the current release version and record the change under Unreleased. --- CHANGELOG.md | 6 ++++++ socketsecurity/__init__.py | 3 ++- socketsecurity/socketcli.py | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ed1b32..95c4c26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +### Changed: use lowercase Python CLI User-Agent + +- Use `socket-python-cli/` consistently for CLI and SDK requests. + ## 2.11.7 ### Changed: bump pinned Coana CLI to 15.13.3 diff --git a/socketsecurity/__init__.py b/socketsecurity/__init__.py index 3519880..f2a282c 100644 --- a/socketsecurity/__init__.py +++ b/socketsecurity/__init__.py @@ -1,3 +1,4 @@ __author__ = 'socket.dev' __version__ = '2.11.7' -USER_AGENT = f'SocketPythonCLI/{__version__}' +USER_AGENT_NAME = 'socket-python-cli' +USER_AGENT = f'{USER_AGENT_NAME}/{__version__}' diff --git a/socketsecurity/socketcli.py b/socketsecurity/socketcli.py index a3213f4..2af7507 100644 --- a/socketsecurity/socketcli.py +++ b/socketsecurity/socketcli.py @@ -12,6 +12,7 @@ from socketdev import socketdev from socketdev.fullscans import FullScanParams +from socketsecurity import USER_AGENT_NAME from socketsecurity.config import CliConfig, truncate_commit_message from socketsecurity.core import Core from socketsecurity.core.classes import Diff @@ -240,7 +241,7 @@ def apply_git_context(config: CliConfig) -> Tuple[bool, Optional[Git]]: def build_socket_sdk(config: CliConfig) -> socketdev: - cli_user_agent_string = f"SocketPythonCLI/{config.version}" + cli_user_agent_string = f"{USER_AGENT_NAME}/{config.version}" return socketdev( token=config.api_token, timeout=get_api_request_timeout(config), From 390dba837042cc0c893171ae1f88a4cf74794d7f Mon Sep 17 00:00:00 2001 From: lelia <2418071+lelia@users.noreply.github.com> Date: Tue, 3 Nov 2026 17:23:04 -0600 Subject: [PATCH 2/2] fix(deps): use Python SDK 3.6.2 Pin the published SDK and refresh its locked artifacts. Include the upgrade in the 2.11.11 release notes. Assisted-by: Codex:GPT-6 --- CHANGELOG.md | 5 +++++ pyproject.toml | 2 +- uv.lock | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8062948..bfe78cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ - Use `socket-python-cli/` consistently for direct API and SDK requests. +### Changed: bump the Socket Python SDK to 3.6.2 + +- Bumped the pinned Socket Python SDK (`socketdev`) from `3.6.1` to `3.6.2` + to reject retired API credentials before use. + ### Changed: bump pinned Coana CLI to 15.14.1 - Bumped the pinned reachability engine (the Coana CLI) from `15.14.0` to diff --git a/pyproject.toml b/pyproject.toml index fae1fca..966fee1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ dependencies = [ "gitpython==3.2.1", "packaging==26.3", "python-dotenv==1.2.4", - "socketdev==3.6.1", + "socketdev==3.6.2", "beautifulsoup4==4.15.0", "markdown==3.11.2", "brotli==1.2.1; platform_python_implementation == 'CPython'", diff --git a/uv.lock b/uv.lock index c4affc3..0a14aad 100644 --- a/uv.lock +++ b/uv.lock @@ -1318,16 +1318,16 @@ wheels = [ [[package]] name = "socketdev" -version = "3.6.1" +version = "3.6.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "certifi" }, { name = "requests" }, { name = "typing-extensions" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/c2/de/c62e2e76ae5f7f55901d1d1cefc5b141309342fd1ae19d44f350fd264efc/socketdev-3.6.1.tar.gz", hash = "sha256:4086d6842a51dd4fd91ecf6aa3f1e24e7c7200f110e50c866784bc09e1fc9986", size = 176415, upload-time = "2026-10-21T21:30:12.548Z" } +sdist = { url = "https://files.pythonhosted.org/packages/3a/c2/48db5863e4e1d86f7b92334b91e8f9c59f4e96fc5949f0b594fff86dfeed/socketdev-3.6.2.tar.gz", hash = "sha256:ad51c879cad8d897ed1b949339fb7aded30d0fe25b2a3810c83079887e8610b5", size = 182918, upload-time = "2026-11-03T23:18:52.18Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/27/70/fe1e09c59dd566391aaf7bd0fb89ed9d1011e13f8fc4f4e8cc9376243888/socketdev-3.6.1-py3-none-any.whl", hash = "sha256:2297c7442c5debfa14ac464fd08b2755edbd71063b4cee3844bff173167f30e4", size = 73395, upload-time = "2026-10-21T21:30:10.718Z" }, + { url = "https://files.pythonhosted.org/packages/c2/3a/7ed253ade4cd47e6af02bf61668c9c2824a35e617668b6f4f12e41d617a5/socketdev-3.6.2-py3-none-any.whl", hash = "sha256:ea94b2da1bdb89f3b70209b606f3abe5c609f66549c1deb160cf18f58e0c2e48", size = 75559, upload-time = "2026-11-03T23:18:50.423Z" }, ] [[package]] @@ -1391,7 +1391,7 @@ requires-dist = [ { name = "python-dotenv", specifier = "==1.2.4" }, { name = "requests", specifier = "==2.34.2" }, { name = "ruff", marker = "extra == 'dev'", specifier = "==0.17.2" }, - { name = "socketdev", specifier = "==3.6.1" }, + { name = "socketdev", specifier = "==3.6.2" }, { name = "twine", marker = "extra == 'dev'", specifier = "==7.0.0" }, { name = "uv", marker = "extra == 'dev'", specifier = "==0.13.5" }, ]