socketdev 3.0.28__py3-none-any.whl → 3.0.31__py3-none-any.whl
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.
- socketdev/fullscans/__init__.py +11 -0
- socketdev/version.py +1 -1
- {socketdev-3.0.28.dist-info → socketdev-3.0.31.dist-info}/METADATA +6 -2
- {socketdev-3.0.28.dist-info → socketdev-3.0.31.dist-info}/RECORD +6 -6
- {socketdev-3.0.28.dist-info → socketdev-3.0.31.dist-info}/WHEEL +1 -1
- {socketdev-3.0.28.dist-info → socketdev-3.0.31.dist-info}/licenses/LICENSE +0 -0
socketdev/fullscans/__init__.py
CHANGED
|
@@ -41,6 +41,12 @@ class DiffType(str, Enum):
|
|
|
41
41
|
UPDATED = "updated"
|
|
42
42
|
|
|
43
43
|
|
|
44
|
+
class ScanType(str, Enum):
|
|
45
|
+
SOCKET = "socket"
|
|
46
|
+
SOCKET_TIER1 = "socket_tier1"
|
|
47
|
+
SOCKET_BASICS = "socket_basics"
|
|
48
|
+
|
|
49
|
+
|
|
44
50
|
@dataclass(kw_only=True)
|
|
45
51
|
class SocketPURL:
|
|
46
52
|
type: SocketPURL_Type
|
|
@@ -99,6 +105,8 @@ class FullScanParams:
|
|
|
99
105
|
make_default_branch: Optional[bool] = None
|
|
100
106
|
set_as_pending_head: Optional[bool] = None
|
|
101
107
|
tmp: Optional[bool] = None
|
|
108
|
+
scan_type: Optional[ScanType] = None
|
|
109
|
+
workspace: Optional[str] = None
|
|
102
110
|
|
|
103
111
|
def __getitem__(self, key):
|
|
104
112
|
return getattr(self, key)
|
|
@@ -109,6 +117,7 @@ class FullScanParams:
|
|
|
109
117
|
@classmethod
|
|
110
118
|
def from_dict(cls, data: dict) -> "FullScanParams":
|
|
111
119
|
integration_type = data.get("integration_type")
|
|
120
|
+
scan_type = data.get("scan_type")
|
|
112
121
|
return cls(
|
|
113
122
|
repo=data["repo"],
|
|
114
123
|
org_slug=data.get("org_slug"),
|
|
@@ -122,6 +131,8 @@ class FullScanParams:
|
|
|
122
131
|
make_default_branch=data.get("make_default_branch"),
|
|
123
132
|
set_as_pending_head=data.get("set_as_pending_head"),
|
|
124
133
|
tmp=data.get("tmp"),
|
|
134
|
+
scan_type=ScanType(scan_type) if scan_type is not None else None,
|
|
135
|
+
workspace=data.get("workspace"),
|
|
125
136
|
)
|
|
126
137
|
|
|
127
138
|
|
socketdev/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "3.0.
|
|
1
|
+
__version__ = "3.0.31"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: socketdev
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.31
|
|
4
4
|
Summary: Socket Security Python SDK
|
|
5
5
|
Project-URL: Homepage, https://github.com/socketdev/socketdev
|
|
6
6
|
Author-email: Douglas Coburn <douglas@socket.dev>
|
|
@@ -30,7 +30,6 @@ License-File: LICENSE
|
|
|
30
30
|
Keywords: oss,sca,sdk,security,socket.dev,socketsecurity
|
|
31
31
|
Classifier: Development Status :: 5 - Production/Stable
|
|
32
32
|
Classifier: Intended Audience :: Developers
|
|
33
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
34
33
|
Classifier: Programming Language :: Python :: 3.10
|
|
35
34
|
Classifier: Programming Language :: Python :: 3.11
|
|
36
35
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -235,6 +234,7 @@ Create a full scan from a set of package manifest files. Returns a full scan inc
|
|
|
235
234
|
params = FullScanParams(
|
|
236
235
|
org_slug="org_name",
|
|
237
236
|
repo="TestRepo",
|
|
237
|
+
workspace="my-workspace",
|
|
238
238
|
branch="main",
|
|
239
239
|
commit_message="Test Commit Message",
|
|
240
240
|
commit_hash="abc123def456",
|
|
@@ -274,10 +274,14 @@ Create a full scan from a set of package manifest files. Returns a full scan inc
|
|
|
274
274
|
+------------------------+------------+-------------------------------------------------------------------------------+
|
|
275
275
|
| tmp | False | Boolean temporary flag |
|
|
276
276
|
+------------------------+------------+-------------------------------------------------------------------------------+
|
|
277
|
+
| workspace | False | The workspace of the repository to associate the full-scan with. |
|
|
278
|
+
+------------------------+------------+-------------------------------------------------------------------------------+
|
|
277
279
|
| integration_type | False | IntegrationType enum value (e.g., "api", "github") |
|
|
278
280
|
+------------------------+------------+-------------------------------------------------------------------------------+
|
|
279
281
|
| integration_org_slug | False | Organization slug for integration |
|
|
280
282
|
+------------------------+------------+-------------------------------------------------------------------------------+
|
|
283
|
+
| scan_type | False | ScanType enum value: "socket", "socket_tier1", or "socket_basics" |
|
|
284
|
+
+------------------------+------------+-------------------------------------------------------------------------------+
|
|
281
285
|
|
|
282
286
|
fullscans.delete(org_slug, full_scan_id)
|
|
283
287
|
""""""""""""""""""""""""""""""""""""""""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
socketdev/__init__.py,sha256=mYuLIlXdU0uec1418LIw_oILBRh5DyWQDpWafaMa_AU,4484
|
|
2
2
|
socketdev/exceptions.py,sha256=SNU1EgswGwnxI_Zmm325ruP6CFg5C4MsS1qxXWwBJqs,1120
|
|
3
3
|
socketdev/log.py,sha256=AgEcsPN3y9U-fze8pTFvLigVvNob2vmNC-TkOOQkkeQ,90
|
|
4
|
-
socketdev/version.py,sha256=
|
|
4
|
+
socketdev/version.py,sha256=FSumHb22USwQGBvI_1hjUag8Dyp4TXbdlIkAgc2xPCU,23
|
|
5
5
|
socketdev/alertfullscansearch/__init__.py,sha256=YwXrgnrI9z9rAexXFFmoXQcaQdGW47HRhQ58CQBCG3U,884
|
|
6
6
|
socketdev/alerts/__init__.py,sha256=kGLCNXtXTRz3vl2s_bPQ7xuds_QGwNQnah1TfHzp2MU,846
|
|
7
7
|
socketdev/alerttypes/__init__.py,sha256=W-m2D9VxbepSAUELJPmWmX40zksGZbQcSzwQ1kjlB1k,1169
|
|
@@ -17,7 +17,7 @@ socketdev/dependencies/__init__.py,sha256=zdAb0lMYF8tTHFWa9kGwz5dv4_Sp1UpzQseg_4
|
|
|
17
17
|
socketdev/diffscans/__init__.py,sha256=ndsgyFmsvK29pJAEhZyBByZ9ampf1Ks6oV8y1q7mssw,5294
|
|
18
18
|
socketdev/export/__init__.py,sha256=5DqVqHnaK5Aq-ueSTIAplOZJpF21W_pXysIzmMNLGPg,3667
|
|
19
19
|
socketdev/fixes/__init__.py,sha256=ouRSQ5FcqQcjAmrU8aAgd0ZJeo431wBOEVKLR36etik,856
|
|
20
|
-
socketdev/fullscans/__init__.py,sha256=
|
|
20
|
+
socketdev/fullscans/__init__.py,sha256=ZvSUpHoq-rst5bZWw0CYfYr7W5Lo9g8qVGkh3G3rkRc,37181
|
|
21
21
|
socketdev/historical/__init__.py,sha256=DXFmRrHLWHKbZrB8eermM4YG6j4C1S4Lz6-V63_p2gs,3472
|
|
22
22
|
socketdev/labels/__init__.py,sha256=Ep19ZraKqi_a-3-eAOWGhPNQsgwGRY9N28Oyxlxrz-g,5128
|
|
23
23
|
socketdev/licensemetadata/__init__.py,sha256=pDcvpkc08QtMqhsnKP1Cfjvs3m-MRPYUK-uLh8aRkrU,815
|
|
@@ -39,7 +39,7 @@ socketdev/triage/__init__.py,sha256=-h599vThVetfRSOAs1e4IUoMjcXS8xOsUfub41XPiX4,
|
|
|
39
39
|
socketdev/uploadmanifests/__init__.py,sha256=-sFHbOW-aw7U0wRfEJT_Edrzx8aCbzD9cTGmVTNJKpw,6043
|
|
40
40
|
socketdev/utils/__init__.py,sha256=E11UJTsWsN-ZurOwtKvPGOTc9UMP3ND79nPbmNRRQ6E,17666
|
|
41
41
|
socketdev/webhooks/__init__.py,sha256=fme6K7ma_Gvk_TFOLz9jVcR5QJbDpMHXqRaU3x_RShY,3507
|
|
42
|
-
socketdev-3.0.
|
|
43
|
-
socketdev-3.0.
|
|
44
|
-
socketdev-3.0.
|
|
45
|
-
socketdev-3.0.
|
|
42
|
+
socketdev-3.0.31.dist-info/METADATA,sha256=zZkPjo_B9inNel1YhobtnvMOTpDZFMxO6yv6o-bdYak,45141
|
|
43
|
+
socketdev-3.0.31.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
44
|
+
socketdev-3.0.31.dist-info/licenses/LICENSE,sha256=mC0II_UuE-_gCG9XqOLNyrV3crnROzMpdAetGnMrhpw,1068
|
|
45
|
+
socketdev-3.0.31.dist-info/RECORD,,
|
|
File without changes
|