Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 2 README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ Create a full scan from a set of package manifest files. Returns a full scan inc
+------------------------+------------+-------------------------------------------------------------------------------+
| integration_org_slug | False | Organization slug for integration |
+------------------------+------------+-------------------------------------------------------------------------------+
| scan_type | False | ScanType enum value: "socket", "socket_tier1", or "socket_basics" |
+------------------------+------------+-------------------------------------------------------------------------------+

fullscans.delete(org_slug, full_scan_id)
""""""""""""""""""""""""""""""""""""""""
Expand Down
2 changes: 1 addition & 1 deletion 2 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "socketdev"
version = "3.0.28"
version = "3.0.29"
requires-python = ">= 3.9"
dependencies = [
'requests',
Expand Down
9 changes: 9 additions & 0 deletions 9 socketdev/fullscans/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ class DiffType(str, Enum):
UPDATED = "updated"


class ScanType(str, Enum):
SOCKET = "socket"
SOCKET_TIER1 = "socket_tier1"
SOCKET_BASICS = "socket_basics"


@dataclass(kw_only=True)
class SocketPURL:
type: SocketPURL_Type
Expand Down Expand Up @@ -99,6 +105,7 @@ class FullScanParams:
make_default_branch: Optional[bool] = None
set_as_pending_head: Optional[bool] = None
tmp: Optional[bool] = None
scan_type: Optional[ScanType] = None

def __getitem__(self, key):
return getattr(self, key)
Expand All @@ -109,6 +116,7 @@ def to_dict(self):
@classmethod
def from_dict(cls, data: dict) -> "FullScanParams":
integration_type = data.get("integration_type")
scan_type = data.get("scan_type")
return cls(
repo=data["repo"],
org_slug=data.get("org_slug"),
Expand All @@ -122,6 +130,7 @@ def from_dict(cls, data: dict) -> "FullScanParams":
make_default_branch=data.get("make_default_branch"),
set_as_pending_head=data.get("set_as_pending_head"),
tmp=data.get("tmp"),
scan_type=ScanType(scan_type) if scan_type is not None else None,
Comment thread
mtorp marked this conversation as resolved.
)


Expand Down
2 changes: 1 addition & 1 deletion 2 socketdev/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "3.0.28"
__version__ = "3.0.29"
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.