socketsecurity 2.2.55__tar.gz → 2.2.57__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.57/CHANGELOG.md +9 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/Dockerfile +5 -4
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/PKG-INFO +2 -1
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/README.md +1 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/pyproject.toml +1 -1
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/scripts/docker-entrypoint.sh +3 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/__init__.py +1 -1
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/tools/reachability.py +0 -4
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/CODEOWNERS +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/workflows/docker-stable.yml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/workflows/pr-preview.yml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/workflows/release.yml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.github/workflows/version-check.yml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.gitignore +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.hooks/sync_version.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.pre-commit-config.yaml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/.python-version +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/LICENSE +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/Makefile +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/docs/README.md +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/pytest.ini +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/scripts/build_container.sh +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/scripts/build_container_flexible.sh +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/scripts/deploy-test-docker.sh +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/scripts/deploy-test-pypi.sh +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/scripts/run.sh +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/config.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/cli_client.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/helper/__init__.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/lazy_file_loader.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/logging.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/resource_utils.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/scm/__init__.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/scm/base.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/scm/client.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/scm/github.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/scm/gitlab.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/socket_config.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/core/utils.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/output.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/__init__.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/base.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/jira.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/manager.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/slack.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/teams.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/plugins/webhook.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/__init__.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/core/conftest.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/core/create_diff_input.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/core/test_diff_generation.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/core/test_package_and_alerts.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/core/test_sdk_methods.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/core/test_supporting_methods.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/create_response.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/diff/stream_diff.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/head_scan/metadata.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/new_scan/metadata.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/repos/repo_info_error.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/repos/repo_info_no_head.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/repos/repo_info_success.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/settings/security-policy.json +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/__init__.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/test_cli_config.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/test_client.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/test_config.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/test_gitlab_auth.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/test_gitlab_auth_fallback.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/unit/test_output.py +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/uv.lock +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/workflows/bitbucket-pipelines.yml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/workflows/github-actions.yml +0 -0
- {socketsecurity-2.2.55 → socketsecurity-2.2.57}/workflows/gitlab-ci.yml +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 2.2.57
|
|
4
|
+
|
|
5
|
+
- Fixed Dockerfile to set `GOROOT` to `/usr/lib/go` when using system Go (`GO_VERSION=system`) instead of always using `/usr/local/go`.
|
|
6
|
+
|
|
7
|
+
## 2.2.56
|
|
8
|
+
|
|
9
|
+
- Removed process timeout from reachability analysis subprocess. Timeouts are now only passed to the Coana CLI via the `--analysis-timeout` flag.
|
|
@@ -20,7 +20,8 @@ RUN apk update && apk add --no-cache \
|
|
|
20
20
|
|
|
21
21
|
# Install Go with version control
|
|
22
22
|
RUN if [ "$GO_VERSION" = "system" ]; then \
|
|
23
|
-
apk add --no-cache go
|
|
23
|
+
apk add --no-cache go && \
|
|
24
|
+
echo "/usr/lib/go" > /etc/goroot; \
|
|
24
25
|
else \
|
|
25
26
|
cd /tmp && \
|
|
26
27
|
ARCH=$(uname -m) && \
|
|
@@ -31,7 +32,8 @@ RUN if [ "$GO_VERSION" = "system" ]; then \
|
|
|
31
32
|
esac && \
|
|
32
33
|
wget https://golang.org/dl/go${GO_VERSION}.linux-${GOARCH}.tar.gz && \
|
|
33
34
|
tar -C /usr/local -xzf go${GO_VERSION}.linux-${GOARCH}.tar.gz && \
|
|
34
|
-
rm go${GO_VERSION}.linux-${GOARCH}.tar.gz
|
|
35
|
+
rm go${GO_VERSION}.linux-${GOARCH}.tar.gz && \
|
|
36
|
+
echo "/usr/local/go" > /etc/goroot; \
|
|
35
37
|
fi
|
|
36
38
|
|
|
37
39
|
# Install Java with version control
|
|
@@ -64,8 +66,7 @@ RUN npm install @coana-tech/cli socket -g && \
|
|
|
64
66
|
rustup component add rustfmt clippy
|
|
65
67
|
|
|
66
68
|
# Set environment paths
|
|
67
|
-
ENV PATH="/usr/local/go/bin:/root/.cargo/bin:${PATH}"
|
|
68
|
-
ENV GOROOT="/usr/local/go"
|
|
69
|
+
ENV PATH="/usr/local/go/bin:/usr/lib/go/bin:/root/.cargo/bin:${PATH}"
|
|
69
70
|
ENV GOPATH="/go"
|
|
70
71
|
|
|
71
72
|
# Install uv
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: socketsecurity
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.57
|
|
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>
|
|
@@ -584,3 +584,4 @@ pre-commit install
|
|
|
584
584
|
```
|
|
585
585
|
|
|
586
586
|
> **Note**: This manual setup is an alternative to the streamlined Make targets described above. For most development workflows, using `make first-time-setup` or `make first-time-local-setup` is recommended.
|
|
587
|
+
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
# docker run socketdev/cli socketcli --params
|
|
5
5
|
# docker run socketdev/cli --cli-params
|
|
6
6
|
|
|
7
|
+
# Set GOROOT from the value determined at build time
|
|
8
|
+
export GOROOT=$(cat /etc/goroot)
|
|
9
|
+
|
|
7
10
|
# Check if we have any arguments
|
|
8
11
|
if [ $# -eq 0 ]; then
|
|
9
12
|
# No arguments provided, run socketcli with no args (will show help)
|
|
@@ -220,7 +220,6 @@ class ReachabilityAnalyzer:
|
|
|
220
220
|
cwd=target_directory,
|
|
221
221
|
stdout=sys.stderr, # Send stdout to stderr so user sees it
|
|
222
222
|
stderr=sys.stderr, # Send stderr to stderr
|
|
223
|
-
timeout=timeout + 60 if timeout else None # Add buffer to subprocess timeout
|
|
224
223
|
)
|
|
225
224
|
|
|
226
225
|
if result.returncode != 0:
|
|
@@ -240,9 +239,6 @@ class ReachabilityAnalyzer:
|
|
|
240
239
|
"tar_hash_used": tar_hash
|
|
241
240
|
}
|
|
242
241
|
|
|
243
|
-
except subprocess.TimeoutExpired:
|
|
244
|
-
log.error(f"Reachability analysis timed out after {timeout} seconds")
|
|
245
|
-
raise Exception(f"Reachability analysis timed out after {timeout} seconds")
|
|
246
242
|
except Exception as e:
|
|
247
243
|
log.error(f"Failed to run reachability analysis: {str(e)}")
|
|
248
244
|
raise Exception(f"Failed to run reachability analysis: {str(e)}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.55 → socketsecurity-2.2.57}/.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
|
|
File without changes
|
{socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/diff/stream_diff_full.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/head_scan/metadata.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/head_scan/stream_scan.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.55 → socketsecurity-2.2.57}/tests/data/fullscans/head_scan/stream_scan_full.json
RENAMED
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.55 → socketsecurity-2.2.57}/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
|