socketsecurity 1.0.22__tar.gz → 1.0.23__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-1.0.22/socketsecurity.egg-info → socketsecurity-1.0.23}/PKG-INFO +1 -1
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/__init__.py +1 -1
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/__init__.py +7 -1
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/git_interface.py +2 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/socketcli.py +5 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/LICENSE +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/README.md +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/pyproject.toml +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/setup.cfg +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/github.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-1.0.22 → socketsecurity-1.0.23}/socketsecurity.egg-info/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__author__ = 'socket.dev'
|
|
2
|
-
__version__ = '1.0.
|
|
2
|
+
__version__ = '1.0.23'
|
|
@@ -215,7 +215,13 @@ class Core:
|
|
|
215
215
|
request_timeout: int
|
|
216
216
|
reports: list
|
|
217
217
|
|
|
218
|
-
def __init__(
|
|
218
|
+
def __init__(
|
|
219
|
+
self,
|
|
220
|
+
token: str,
|
|
221
|
+
base_api_url: str = None,
|
|
222
|
+
request_timeout: int = None,
|
|
223
|
+
enable_all_alerts: bool = False
|
|
224
|
+
):
|
|
219
225
|
self.token = token + ":"
|
|
220
226
|
encode_key(self.token)
|
|
221
227
|
self.socket_date_format = "%Y-%m-%dT%H:%M:%S.%fZ"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from git import Repo
|
|
2
2
|
from socketsecurity.core import log
|
|
3
|
+
import urllib.parse
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
class Git:
|
|
@@ -15,6 +16,7 @@ class Git:
|
|
|
15
16
|
self.repo_name = self.repo.remotes.origin.url.split('.git')[0].split('/')[-1]
|
|
16
17
|
try:
|
|
17
18
|
self.branch = self.head.reference
|
|
19
|
+
urllib.parse.unquote(str(self.branch))
|
|
18
20
|
except Exception as error:
|
|
19
21
|
self.branch = None
|
|
20
22
|
log.debug(error)
|
|
@@ -27,6 +27,11 @@ parser.add_argument(
|
|
|
27
27
|
help='The Socket API token can be set via SOCKET_SECURITY_API_KEY',
|
|
28
28
|
required=False
|
|
29
29
|
)
|
|
30
|
+
parser.add_argument(
|
|
31
|
+
'--base-url',
|
|
32
|
+
help='Override the base url to use with the Socket Broker',
|
|
33
|
+
required=False
|
|
34
|
+
)
|
|
30
35
|
parser.add_argument(
|
|
31
36
|
'--repo',
|
|
32
37
|
help='The name of the repository',
|
|
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-1.0.22 → socketsecurity-1.0.23}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|