socketsecurity 2.2.22__tar.gz → 2.2.26__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.
- socketsecurity-2.2.26/Dockerfile +41 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/PKG-INFO +2 -2
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/pyproject.toml +2 -2
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/scripts/build_container.sh +50 -3
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/__init__.py +1 -1
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/socketcli.py +1 -2
- socketsecurity-2.2.22/Dockerfile +0 -23
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/CODEOWNERS +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/workflows/docker-stable.yml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/workflows/pr-preview.yml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/workflows/release.yml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/workflows/version-check.yml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.gitignore +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.hooks/sync_version.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.pre-commit-config.yaml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/.python-version +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/LICENSE +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/Makefile +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/README.md +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/docs/README.md +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/pytest.ini +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/scripts/deploy-test-docker.sh +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/scripts/deploy-test-pypi.sh +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/scripts/run.sh +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/config.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/cli_client.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/helper/__init__.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/lazy_file_loader.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/logging.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/resource_utils.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/scm/__init__.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/scm/base.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/scm/client.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/scm/github.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/scm/gitlab.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/socket_config.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/tools/reachability.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/core/utils.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/output.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/__init__.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/base.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/jira.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/manager.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/slack.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/teams.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/socketsecurity/plugins/webhook.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/__init__.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/core/conftest.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/core/create_diff_input.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/core/test_diff_generation.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/core/test_package_and_alerts.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/core/test_sdk_methods.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/core/test_supporting_methods.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/create_response.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/diff/stream_diff.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/head_scan/metadata.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/new_scan/metadata.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/repos/repo_info_error.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/repos/repo_info_no_head.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/repos/repo_info_success.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/settings/security-policy.json +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/__init__.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/test_cli_config.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/test_client.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/test_config.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/test_gitlab_auth.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/test_gitlab_auth_fallback.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/unit/test_output.py +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/uv.lock +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/workflows/bitbucket-pipelines.yml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/workflows/github-actions.yml +0 -0
- {socketsecurity-2.2.22 → socketsecurity-2.2.26}/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.
|
|
3
|
+
Version: 2.2.26
|
|
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.
|
|
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.
|
|
9
|
+
version = "2.2.26"
|
|
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.
|
|
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
|
|
28
|
-
echo "\tpypi-build:
|
|
29
|
-
echo "\
|
|
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
|
+
|
|
@@ -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
|
-
|
|
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}")
|
socketsecurity-2.2.22/Dockerfile
DELETED
|
@@ -1,23 +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 \
|
|
10
|
-
&& npm install @coana-tech/cli -g
|
|
11
|
-
|
|
12
|
-
# Install CLI with retries for TestPyPI propagation (10 attempts, 30s each = 5 minutes total)
|
|
13
|
-
RUN for i in $(seq 1 10); do \
|
|
14
|
-
echo "Attempt $i/10: Installing socketsecurity==$CLI_VERSION"; \
|
|
15
|
-
if pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketsecurity==$CLI_VERSION; then \
|
|
16
|
-
break; \
|
|
17
|
-
fi; \
|
|
18
|
-
echo "Install failed, waiting 30s before retry..."; \
|
|
19
|
-
sleep 30; \
|
|
20
|
-
done && \
|
|
21
|
-
if [ ! -z "$SDK_VERSION" ]; then \
|
|
22
|
-
pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketdev==${SDK_VERSION}; \
|
|
23
|
-
fi
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.22 → socketsecurity-2.2.26}/.github/PULL_REQUEST_TEMPLATE/improvement.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/diff/stream_diff_full.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/head_scan/metadata.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/head_scan/stream_scan.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/head_scan/stream_scan_full.json
RENAMED
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.22 → socketsecurity-2.2.26}/tests/data/fullscans/new_scan/stream_scan.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|