Skip to content

Commit 918e0f8

Browse files
authored
Add scan_type parameter to full scan API calls (#24)
- Set scan_type to 'socket_basics' when submitting full scans to the Socket API - Update socketdev SDK minimum version to 3.0.29 (required for scan_type support) - Bump version to 1.0.27
1 parent 916662d commit 918e0f8

3 files changed

Lines changed: 183 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "socket_basics"
3-
version = "1.0.26"
3+
version = "1.0.27"
44
description = "Socket Basics with integrated SAST, secret scanning, and container analysis"
55
readme = "README.md"
66
requires-python = ">=3.10"
@@ -28,7 +28,7 @@ dependencies = [
2828
"light-s3-client~=0.0.30",
2929
"PyYAML>=6.0.0",
3030
"tomli; python_version < '3.11'",
31-
"socketdev>=3.0.14",
31+
"socketdev>=3.0.29",
3232
"jsonschema>=4.25.1"
3333
]
3434

socket_basics/socket_basics.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def submit_socket_facts(self, socket_facts_path: Path, results: Dict[str, Any])
275275
'commit_hash': commit_hash,
276276
'make_default_branch': is_default_branch,
277277
'set_as_pending_head': is_default_branch,
278-
'integration_type': "api"
278+
'integration_type': "api",
279+
'scan_type': "socket_basics"
279280
}
280281

281282
# Always include pull_request (0 if not a PR)

0 commit comments

Comments
 (0)