socketsecurity 2.2.56__tar.gz → 2.2.59__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.56 → socketsecurity-2.2.59}/CHANGELOG.md +4 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/Dockerfile +5 -4
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/PKG-INFO +1 -1
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/pyproject.toml +1 -1
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/scripts/docker-entrypoint.sh +3 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/__init__.py +1 -1
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/__init__.py +16 -11
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/CODEOWNERS +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/PULL_REQUEST_TEMPLATE/bug-fix.md +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/PULL_REQUEST_TEMPLATE/feature.md +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/PULL_REQUEST_TEMPLATE/improvement.md +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/workflows/docker-stable.yml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/workflows/pr-preview.yml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/workflows/release.yml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.github/workflows/version-check.yml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.gitignore +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.hooks/sync_version.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.pre-commit-config.yaml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/.python-version +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/LICENSE +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/Makefile +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/README.md +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/docs/README.md +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/pytest.ini +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/scripts/build_container.sh +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/scripts/build_container_flexible.sh +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/scripts/deploy-test-docker.sh +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/scripts/deploy-test-pypi.sh +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/scripts/run.sh +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/config.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/cli_client.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/helper/__init__.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/lazy_file_loader.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/logging.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/resource_utils.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/scm/__init__.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/scm/base.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/scm/client.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/scm/github.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/scm/gitlab.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/socket_config.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/tools/reachability.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/core/utils.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/output.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/__init__.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/base.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/jira.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/manager.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/slack.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/teams.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/plugins/webhook.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/__init__.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/core/conftest.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/core/create_diff_input.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/core/test_diff_generation.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/core/test_package_and_alerts.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/core/test_sdk_methods.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/core/test_supporting_methods.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/create_response.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/diff/stream_diff.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/diff/stream_diff_full.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/head_scan/metadata.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/head_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/head_scan/stream_scan_full.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/new_scan/metadata.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/new_scan/stream_scan.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/repos/repo_info_error.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/repos/repo_info_no_head.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/repos/repo_info_success.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/settings/security-policy.json +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/__init__.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/test_cli_config.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/test_client.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/test_config.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/test_gitlab_auth.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/test_gitlab_auth_fallback.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/unit/test_output.py +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/uv.lock +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/workflows/bitbucket-pipelines.yml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/workflows/github-actions.yml +0 -0
- {socketsecurity-2.2.56 → socketsecurity-2.2.59}/workflows/gitlab-ci.yml +0 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
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
|
+
|
|
3
7
|
## 2.2.56
|
|
4
8
|
|
|
5
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
|
|
@@ -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)
|
|
@@ -4,13 +4,10 @@ import sys
|
|
|
4
4
|
import tarfile
|
|
5
5
|
import tempfile
|
|
6
6
|
import time
|
|
7
|
-
import io
|
|
8
7
|
import json
|
|
9
8
|
from dataclasses import asdict
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from pathlib import PurePath
|
|
13
|
-
from typing import BinaryIO, Dict, List, Tuple, Set, Union, TYPE_CHECKING, Optional
|
|
9
|
+
from pathlib import Path, PurePath
|
|
10
|
+
from typing import Dict, List, Tuple, Set, TYPE_CHECKING, Optional
|
|
14
11
|
|
|
15
12
|
if TYPE_CHECKING:
|
|
16
13
|
from socketsecurity.config import CliConfig
|
|
@@ -315,15 +312,18 @@ class Core:
|
|
|
315
312
|
|
|
316
313
|
for pattern in expanded_patterns:
|
|
317
314
|
case_insensitive_pattern = Core.to_case_insensitive_regex(pattern)
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
log.debug(f"Globbing {file_path}")
|
|
315
|
+
|
|
316
|
+
log.debug(f"Searching for pattern: {case_insensitive_pattern}")
|
|
321
317
|
glob_start = time.time()
|
|
322
|
-
|
|
318
|
+
|
|
319
|
+
# Use pathlib.Path.rglob() instead of glob.glob() to properly match dotfiles/dotdirs
|
|
320
|
+
base_path = Path(path)
|
|
321
|
+
glob_files = base_path.rglob(case_insensitive_pattern)
|
|
323
322
|
|
|
324
323
|
for glob_file in glob_files:
|
|
325
|
-
|
|
326
|
-
|
|
324
|
+
glob_file_str = str(glob_file)
|
|
325
|
+
if os.path.isfile(glob_file_str) and not Core.is_excluded(glob_file_str, self.config.excluded_dirs):
|
|
326
|
+
files.add(glob_file_str.replace("\\", "/"))
|
|
327
327
|
|
|
328
328
|
glob_end = time.time()
|
|
329
329
|
log.debug(f"Globbing took {glob_end - glob_start:.4f} seconds")
|
|
@@ -414,6 +414,11 @@ class Core:
|
|
|
414
414
|
# Expand brace patterns for each manifest pattern
|
|
415
415
|
expanded_patterns = Core.expand_brace_pattern(pattern_str)
|
|
416
416
|
for exp_pat in expanded_patterns:
|
|
417
|
+
# If pattern doesn't contain '/', prepend '**/' to match files in any subdirectory
|
|
418
|
+
# This ensures patterns like '*requirements.txt' match '.test/requirements.txt'
|
|
419
|
+
if '/' not in exp_pat:
|
|
420
|
+
exp_pat = f"**/{exp_pat}"
|
|
421
|
+
|
|
417
422
|
for file in norm_files:
|
|
418
423
|
# Use PurePath.match for glob-like matching
|
|
419
424
|
if PurePath(file).match(exp_pat):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.56 → socketsecurity-2.2.59}/.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
|
|
File without changes
|
{socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/diff/stream_diff_full.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/head_scan/metadata.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/head_scan/stream_scan.json
RENAMED
|
File without changes
|
{socketsecurity-2.2.56 → socketsecurity-2.2.59}/tests/data/fullscans/head_scan/stream_scan_full.json
RENAMED
|
File without changes
|
|
File without changes
|
{socketsecurity-2.2.56 → socketsecurity-2.2.59}/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
|