socketsecurity 0.0.84__tar.gz → 0.0.86__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-0.0.84/socketsecurity.egg-info → socketsecurity-0.0.86}/PKG-INFO +1 -1
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/__init__.py +1 -1
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/git_interface.py +7 -3
- {socketsecurity-0.0.84 → socketsecurity-0.0.86/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/LICENSE +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/README.md +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/pyproject.toml +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/setup.cfg +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/github.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/messages.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/core/scm_comments.py +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity/socketcli.py +1 -1
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity.egg-info/top_level.txt +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__author__ = 'socket.dev'
|
|
2
|
-
__version__ = '0.0.
|
|
2
|
+
__version__ = '0.0.86'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
from git import Repo
|
|
2
|
+
from socketsecurity.core import log
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
class Git:
|
|
@@ -10,10 +11,13 @@ class Git:
|
|
|
10
11
|
self.repo = Repo(path)
|
|
11
12
|
assert self.repo
|
|
12
13
|
self.head = self.repo.head
|
|
13
|
-
self.
|
|
14
|
-
self.commit = self.reference.commit
|
|
14
|
+
self.commit = self.head.commit
|
|
15
15
|
self.repo_name = self.repo.remotes.origin.url.split('.git')[0].split('/')[-1]
|
|
16
|
-
|
|
16
|
+
try:
|
|
17
|
+
self.branch = self.head.reference
|
|
18
|
+
except Exception as error:
|
|
19
|
+
self.branch = None
|
|
20
|
+
log.debug(error)
|
|
17
21
|
self.author = self.commit.author
|
|
18
22
|
self.commit_sha = self.commit.binsha
|
|
19
23
|
self.commit_message = self.commit.message
|
|
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
|
|
@@ -169,6 +169,7 @@ def main_code():
|
|
|
169
169
|
license_mode = arguments.generate_license
|
|
170
170
|
enable_json = arguments.enable_json
|
|
171
171
|
files = arguments.files
|
|
172
|
+
log.info(f"Starting Socket Security Scan version {__version__}")
|
|
172
173
|
api_token = os.getenv("SOCKET_SECURITY_API_KEY") or arguments.api_token
|
|
173
174
|
try:
|
|
174
175
|
files = json.loads(files)
|
|
@@ -203,7 +204,6 @@ def main_code():
|
|
|
203
204
|
if branch is not None:
|
|
204
205
|
license_file += f"_{branch}"
|
|
205
206
|
license_file += ".json"
|
|
206
|
-
log.info(f"Starting Socket Security Scan version {__version__}")
|
|
207
207
|
scm = None
|
|
208
208
|
if scm_type == "github":
|
|
209
209
|
from socketsecurity.core.github import Github
|
|
File without changes
|
{socketsecurity-0.0.84 → socketsecurity-0.0.86}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|