socketsecurity 2.2.23__tar.gz → 2.2.27__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. socketsecurity-2.2.27/Dockerfile +41 -0
  2. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/PKG-INFO +2 -2
  3. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/pyproject.toml +2 -2
  4. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/scripts/build_container.sh +50 -3
  5. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/__init__.py +1 -1
  6. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/scm/gitlab.py +13 -9
  7. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/socketcli.py +1 -2
  8. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/uv.lock +9 -5
  9. socketsecurity-2.2.23/Dockerfile +0 -27
  10. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/CODEOWNERS +0 -0
  11. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
  12. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
  13. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
  14. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  15. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/workflows/docker-stable.yml +0 -0
  16. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/workflows/pr-preview.yml +0 -0
  17. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/workflows/release.yml +0 -0
  18. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.github/workflows/version-check.yml +0 -0
  19. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.gitignore +0 -0
  20. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.hooks/sync_version.py +0 -0
  21. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.pre-commit-config.yaml +0 -0
  22. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/.python-version +0 -0
  23. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/LICENSE +0 -0
  24. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/Makefile +0 -0
  25. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/README.md +0 -0
  26. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/docs/README.md +0 -0
  27. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/pytest.ini +0 -0
  28. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/scripts/deploy-test-docker.sh +0 -0
  29. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/scripts/deploy-test-pypi.sh +0 -0
  30. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/scripts/run.sh +0 -0
  31. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/config.py +0 -0
  32. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/__init__.py +0 -0
  33. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/classes.py +0 -0
  34. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/cli_client.py +0 -0
  35. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/exceptions.py +0 -0
  36. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/git_interface.py +0 -0
  37. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/helper/__init__.py +0 -0
  38. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/lazy_file_loader.py +0 -0
  39. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/logging.py +0 -0
  40. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/messages.py +0 -0
  41. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/resource_utils.py +0 -0
  42. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/scm/__init__.py +0 -0
  43. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/scm/base.py +0 -0
  44. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/scm/client.py +0 -0
  45. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/scm/github.py +0 -0
  46. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/scm_comments.py +0 -0
  47. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/socket_config.py +0 -0
  48. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/tools/reachability.py +0 -0
  49. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/core/utils.py +0 -0
  50. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/output.py +0 -0
  51. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/__init__.py +0 -0
  52. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/base.py +0 -0
  53. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/jira.py +0 -0
  54. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/manager.py +0 -0
  55. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/slack.py +0 -0
  56. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/teams.py +0 -0
  57. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/socketsecurity/plugins/webhook.py +0 -0
  58. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/__init__.py +0 -0
  59. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/core/conftest.py +0 -0
  60. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/core/create_diff_input.json +0 -0
  61. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/core/test_diff_generation.py +0 -0
  62. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/core/test_package_and_alerts.py +0 -0
  63. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/core/test_sdk_methods.py +0 -0
  64. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/core/test_supporting_methods.py +0 -0
  65. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/create_response.json +0 -0
  66. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/diff/stream_diff.json +0 -0
  67. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
  68. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/head_scan/metadata.json +0 -0
  69. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
  70. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
  71. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/new_scan/metadata.json +0 -0
  72. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
  73. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/repos/repo_info_error.json +0 -0
  74. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/repos/repo_info_no_head.json +0 -0
  75. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/repos/repo_info_success.json +0 -0
  76. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/data/settings/security-policy.json +0 -0
  77. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/__init__.py +0 -0
  78. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/test_cli_config.py +0 -0
  79. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/test_client.py +0 -0
  80. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/test_config.py +0 -0
  81. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/test_gitlab_auth.py +0 -0
  82. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/test_gitlab_auth_fallback.py +0 -0
  83. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/tests/unit/test_output.py +0 -0
  84. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/workflows/bitbucket-pipelines.yml +0 -0
  85. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/workflows/github-actions.yml +0 -0
  86. {socketsecurity-2.2.23 → socketsecurity-2.2.27}/workflows/gitlab-ci.yml +0 -0
@@ -0,0 +1,41 @@
1
+ FROM python:3-alpine
2
+ LABEL org.opencontainers.image.authors="socket.dev"
3
+ ARG CLI_VERSION
4
+ ARG SDK_VERSION
5
+ ARG PIP_INDEX_URL=https://pypi.org/simple
6
+ ARG PIP_EXTRA_INDEX_URL=https://pypi.org/simple
7
+ ARG USE_LOCAL_INSTALL=false
8
+
9
+ RUN apk update \
10
+ && apk add --no-cache git nodejs npm yarn curl \
11
+ && npm install @coana-tech/cli -g
12
+
13
+ # Install uv
14
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
15
+
16
+ # Install CLI based on build mode
17
+ RUN if [ "$USE_LOCAL_INSTALL" = "true" ]; then \
18
+ echo "Using local development install"; \
19
+ else \
20
+ for i in $(seq 1 10); do \
21
+ echo "Attempt $i/10: Installing socketsecurity==$CLI_VERSION"; \
22
+ if pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketsecurity==$CLI_VERSION; then \
23
+ break; \
24
+ fi; \
25
+ echo "Install failed, waiting 30s before retry..."; \
26
+ sleep 30; \
27
+ done && \
28
+ if [ ! -z "$SDK_VERSION" ]; then \
29
+ pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketdev==${SDK_VERSION}; \
30
+ fi; \
31
+ fi
32
+
33
+ # Copy local source and install in editable mode if USE_LOCAL_INSTALL is true
34
+ COPY . /app
35
+ WORKDIR /app
36
+ RUN if [ "$USE_LOCAL_INSTALL" = "true" ]; then \
37
+ pip install --upgrade -e .; \
38
+ pip install --upgrade socketdev; \
39
+ fi
40
+
41
+ # ENTRYPOINT ["socketcli"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: socketsecurity
3
- Version: 2.2.23
3
+ Version: 2.2.27
4
4
  Summary: Socket Security CLI for CI/CD
5
5
  Project-URL: Homepage, https://socket.dev
6
6
  Author-email: Douglas Coburn <douglas@socket.dev>
@@ -40,7 +40,7 @@ Requires-Dist: packaging
40
40
  Requires-Dist: prettytable
41
41
  Requires-Dist: python-dotenv
42
42
  Requires-Dist: requests
43
- Requires-Dist: socketdev<4.0.0,>=3.0.16
43
+ Requires-Dist: socketdev<4.0.0,>=3.0.17
44
44
  Provides-Extra: dev
45
45
  Requires-Dist: hatch; extra == 'dev'
46
46
  Requires-Dist: pre-commit; extra == 'dev'
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
 
7
7
  [project]
8
8
  name = "socketsecurity"
9
- version = "2.2.23"
9
+ version = "2.2.27"
10
10
  requires-python = ">= 3.10"
11
11
  license = {"file" = "LICENSE"}
12
12
  dependencies = [
@@ -16,7 +16,7 @@ dependencies = [
16
16
  'GitPython',
17
17
  'packaging',
18
18
  'python-dotenv',
19
- 'socketdev>=3.0.16,<4.0.0',
19
+ 'socketdev>=3.0.17,<4.0.0',
20
20
  "bs4>=0.0.2",
21
21
  ]
22
22
  readme = "README.md"
@@ -24,9 +24,15 @@ verify_package() {
24
24
 
25
25
  echo $VERSION
26
26
  if [ -z $ENABLE_PYPI_BUILD ] || [ -z $STABLE_VERSION ]; then
27
- echo "$0 pypi-build=enable stable=true"
28
- echo "\tpypi-build: Build and publish a new version of the package to pypi. Options are prod or test"
29
- echo "\tstable: Only build and publish a new version for the stable docker tag if it has been tested and going on the changelog"
27
+ echo "$0 pypi-build=<option> stable=<true|false|prod|test>"
28
+ echo "\tpypi-build: Options are prod, test, or local"
29
+ echo "\t - prod: Build and publish to production PyPI, then build Docker images"
30
+ echo "\t - test: Build and publish to test PyPI, then build Docker images"
31
+ echo "\t - local: Build Docker images only using existing PyPI package (specify prod or test via stable parameter)"
32
+ echo "\tstable: true/false/prod/test - Also tag as stable; for local builds:"
33
+ echo "\t - stable=prod: Use production PyPI package"
34
+ echo "\t - stable=test: Use test PyPI package"
35
+ echo "\t - stable=false: Use local development install (pip install -e .)"
30
36
  exit
31
37
  fi
32
38
 
@@ -97,3 +103,44 @@ if [ $STABLE_VERSION = "stable=true" ]; then
97
103
  && docker push socketdev/cli:stable
98
104
  fi
99
105
 
106
+ if [ $ENABLE_PYPI_BUILD = "pypi-build=local" ]; then
107
+ echo "Building local version without publishing to PyPI"
108
+
109
+ # Determine PyPI source based on stable parameter
110
+ if [ $STABLE_VERSION = "stable=prod" ]; then
111
+ echo "Using production PyPI"
112
+ PIP_INDEX_URL="https://pypi.org/simple"
113
+ PIP_EXTRA_INDEX_URL="https://pypi.org/simple"
114
+ TAG_SUFFIX="local"
115
+ USE_LOCAL_INSTALL="false"
116
+ elif [ $STABLE_VERSION = "stable=test" ]; then
117
+ echo "Using test PyPI"
118
+ PIP_INDEX_URL="https://test.pypi.org/simple"
119
+ PIP_EXTRA_INDEX_URL="https://pypi.org/simple"
120
+ TAG_SUFFIX="local-test"
121
+ USE_LOCAL_INSTALL="false"
122
+ elif [ $STABLE_VERSION = "stable=false" ]; then
123
+ echo "Using local development install (pip install -e .)"
124
+ TAG_SUFFIX="local-dev"
125
+ USE_LOCAL_INSTALL="true"
126
+ else
127
+ echo "For local builds, use stable=prod, stable=test, or stable=false"
128
+ exit 1
129
+ fi
130
+
131
+ if [ $USE_LOCAL_INSTALL = "true" ]; then
132
+ docker build --no-cache \
133
+ --build-arg USE_LOCAL_INSTALL=true \
134
+ -t socketdev/cli:$VERSION-$TAG_SUFFIX \
135
+ -t socketdev/cli:$TAG_SUFFIX .
136
+ else
137
+ docker build --no-cache \
138
+ --build-arg CLI_VERSION=$VERSION \
139
+ --build-arg PIP_INDEX_URL=$PIP_INDEX_URL \
140
+ --build-arg PIP_EXTRA_INDEX_URL=$PIP_EXTRA_INDEX_URL \
141
+ -t socketdev/cli:$VERSION-$TAG_SUFFIX \
142
+ -t socketdev/cli:$TAG_SUFFIX .
143
+ fi
144
+ echo "Local build complete. Tagged as socketdev/cli:$VERSION-$TAG_SUFFIX and socketdev/cli:$TAG_SUFFIX"
145
+ fi
146
+
@@ -1,3 +1,3 @@
1
1
  __author__ = 'socket.dev'
2
- __version__ = '2.2.23'
2
+ __version__ = '2.2.27'
3
3
  USER_AGENT = f'SocketPythonCLI/{__version__}'
@@ -1,8 +1,9 @@
1
1
  import os
2
2
  import sys
3
3
  from dataclasses import dataclass
4
- from typing import Optional
4
+ from typing import Optional, Union
5
5
 
6
+ import requests
6
7
  from socketsecurity import USER_AGENT
7
8
  from socketsecurity.core import log
8
9
  from socketsecurity.core.classes import Comment
@@ -128,9 +129,9 @@ class Gitlab:
128
129
  try:
129
130
  # Try the initial request with the configured headers
130
131
  return self.client.request(**kwargs)
131
- except Exception as e:
132
+ except requests.exceptions.HTTPError as e:
132
133
  # Check if this is an authentication error (401)
133
- if hasattr(e, 'response') and e.response and e.response.status_code == 401:
134
+ if e.response and e.response.status_code == 401:
134
135
  log.debug(f"Authentication failed with initial headers, trying fallback method")
135
136
 
136
137
  # Determine the fallback headers
@@ -144,6 +145,9 @@ class Gitlab:
144
145
 
145
146
  # Re-raise the original exception if it's not an auth error or fallback failed
146
147
  raise
148
+ except Exception as e:
149
+ # Handle other types of exceptions that don't have response attribute
150
+ raise
147
151
 
148
152
  def _get_fallback_headers(self, original_headers: dict) -> dict:
149
153
  """
@@ -235,13 +239,13 @@ class Gitlab:
235
239
  new_security_comment: bool = True,
236
240
  new_overview_comment: bool = True
237
241
  ) -> None:
238
- existing_overview_comment = comments.get("overview", "")
239
- existing_security_comment = comments.get("security", "")
242
+ existing_overview_comment = comments.get("overview")
243
+ existing_security_comment = comments.get("security")
240
244
  if new_overview_comment:
241
245
  log.debug("New Dependency Overview comment")
242
246
  if existing_overview_comment is not None:
243
247
  log.debug("Previous version of Dependency Overview, updating")
244
- existing_overview_comment: Comment
248
+ # Type narrowing: after None check, mypy knows this is Comment
245
249
  self.update_comment(overview_comment, str(existing_overview_comment.id))
246
250
  else:
247
251
  log.debug("No previous version of Dependency Overview, posting")
@@ -250,15 +254,15 @@ class Gitlab:
250
254
  log.debug("New Security Issue Comment")
251
255
  if existing_security_comment is not None:
252
256
  log.debug("Previous version of Security Issue comment, updating")
253
- existing_security_comment: Comment
257
+ # Type narrowing: after None check, mypy knows this is Comment
254
258
  self.update_comment(security_comment, str(existing_security_comment.id))
255
259
  else:
256
260
  log.debug("No Previous version of Security Issue comment, posting")
257
261
  self.post_comment(security_comment)
258
262
 
259
263
  def remove_comment_alerts(self, comments: dict):
260
- security_alert = comments.get("security", "")
264
+ security_alert = comments.get("security")
261
265
  if security_alert is not None:
262
- security_alert: Comment
266
+ # Type narrowing: after None check, mypy knows this is Comment
263
267
  new_body = Comments.process_security_comment(security_alert, comments)
264
268
  self.update_comment(new_body, str(security_alert.id))
@@ -251,8 +251,7 @@ def main_code():
251
251
  org_slug=org_slug,
252
252
  file_paths=manifest_files,
253
253
  workspace=config.repo or "default-workspace",
254
- base_path=None,
255
- base_paths=base_paths,
254
+ base_paths=[config.target_path],
256
255
  use_lazy_loading=False
257
256
  )
258
257
  log.info(f"Manifest upload successful, tar hash: {tar_hash}")
@@ -1052,26 +1052,28 @@ wheels = [
1052
1052
 
1053
1053
  [[package]]
1054
1054
  name = "socketdev"
1055
- version = "3.0.16"
1055
+ version = "3.0.17"
1056
1056
  source = { registry = "https://pypi.org/simple" }
1057
1057
  dependencies = [
1058
1058
  { name = "requests" },
1059
1059
  { name = "typing-extensions" },
1060
1060
  ]
1061
- sdist = { url = "https://files.pythonhosted.org/packages/02/0d/6da0e0c34b97eef3a926d55470fa4bda2fcbbc42cc9e26ac51a34c6f117d/socketdev-3.0.16.tar.gz", hash = "sha256:5145300945e4e8d2d7f71db9c55cb44cc1449874f9d6416cc1d6ec129c64d638", size = 132505, upload-time = "2025-11-07T03:24:16.231Z" }
1061
+ sdist = { url = "https://files.pythonhosted.org/packages/47/60/54b56ac179a9c89b2c9f2ab7eb5ba81220de64d11d52cf19249113ff364d/socketdev-3.0.17.tar.gz", hash = "sha256:a4446a84856c637c312d809d5b8deb25dd20ca38ae7d00a4c8104ea5b890c0af", size = 134013, upload-time = "2025-11-07T22:38:34.354Z" }
1062
1062
  wheels = [
1063
- { url = "https://files.pythonhosted.org/packages/a3/91/8486b2a62ba71d62a8f4f2f9ad22c61fcaabb461c5f269bbe0734eae76f9/socketdev-3.0.16-py3-none-any.whl", hash = "sha256:f5e413f5f2f8c0c938d5654da7f0a157c0be02a25e14d94af62c252e9fb3b502", size = 58567, upload-time = "2025-11-07T03:24:14.965Z" },
1063
+ { url = "https://files.pythonhosted.org/packages/98/56/34ab0e33b5345ca7ada68cd0a9e9d4adcde16051192eb10f8e2c3e0deaa1/socketdev-3.0.17-py3-none-any.whl", hash = "sha256:0986ee0694d5ce879cadb8e06fcfb75a4ca2dfb6f415414593825701593cf991", size = 59317, upload-time = "2025-11-07T22:38:32.704Z" },
1064
1064
  ]
1065
1065
 
1066
1066
  [[package]]
1067
1067
  name = "socketsecurity"
1068
- version = "2.2.18"
1068
+ version = "2.2.26"
1069
1069
  source = { editable = "." }
1070
1070
  dependencies = [
1071
1071
  { name = "bs4" },
1072
1072
  { name = "gitpython" },
1073
+ { name = "hatch" },
1073
1074
  { name = "mdutils" },
1074
1075
  { name = "packaging" },
1076
+ { name = "pluggy" },
1075
1077
  { name = "prettytable" },
1076
1078
  { name = "python-dotenv" },
1077
1079
  { name = "requests" },
@@ -1098,9 +1100,11 @@ test = [
1098
1100
  requires-dist = [
1099
1101
  { name = "bs4", specifier = ">=0.0.2" },
1100
1102
  { name = "gitpython" },
1103
+ { name = "hatch", specifier = ">=1.14.1" },
1101
1104
  { name = "hatch", marker = "extra == 'dev'" },
1102
1105
  { name = "mdutils" },
1103
1106
  { name = "packaging" },
1107
+ { name = "pluggy", specifier = ">=1.6.0" },
1104
1108
  { name = "pre-commit", marker = "extra == 'dev'" },
1105
1109
  { name = "prettytable" },
1106
1110
  { name = "pytest", marker = "extra == 'test'", specifier = ">=7.4.0" },
@@ -1111,7 +1115,7 @@ requires-dist = [
1111
1115
  { name = "python-dotenv" },
1112
1116
  { name = "requests" },
1113
1117
  { name = "ruff", marker = "extra == 'dev'", specifier = ">=0.3.0" },
1114
- { name = "socketdev", specifier = ">=3.0.16,<4.0.0" },
1118
+ { name = "socketdev", specifier = ">=3.0.17,<4.0.0" },
1115
1119
  { name = "twine", marker = "extra == 'dev'" },
1116
1120
  { name = "uv", marker = "extra == 'dev'", specifier = ">=0.1.0" },
1117
1121
  ]
@@ -1,27 +0,0 @@
1
- FROM python:3-alpine
2
- LABEL org.opencontainers.image.authors="socket.dev"
3
- ARG CLI_VERSION
4
- ARG SDK_VERSION
5
- ARG PIP_INDEX_URL=https://pypi.org/simple
6
- ARG PIP_EXTRA_INDEX_URL=https://pypi.org/simple
7
-
8
- RUN apk update \
9
- && apk add --no-cache git nodejs npm yarn curl \
10
- && npm install @coana-tech/cli -g
11
-
12
- # Install uv
13
- RUN curl -LsSf https://astral.sh/uv/install.sh | sh
14
- ENV PATH="/root/.cargo/bin:${PATH}"
15
-
16
- # Install CLI with retries for TestPyPI propagation (10 attempts, 30s each = 5 minutes total)
17
- RUN for i in $(seq 1 10); do \
18
- echo "Attempt $i/10: Installing socketsecurity==$CLI_VERSION"; \
19
- if pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketsecurity==$CLI_VERSION; then \
20
- break; \
21
- fi; \
22
- echo "Install failed, waiting 30s before retry..."; \
23
- sleep 30; \
24
- done && \
25
- if [ ! -z "$SDK_VERSION" ]; then \
26
- pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketdev==${SDK_VERSION}; \
27
- fi
File without changes