socketsecurity 1.0.2__tar.gz → 1.0.3__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.2/socketsecurity.egg-info → socketsecurity-1.0.3}/PKG-INFO +1 -1
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/__init__.py +1 -1
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/messages.py +2 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/scm_comments.py +6 -5
- {socketsecurity-1.0.2 → socketsecurity-1.0.3/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/LICENSE +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/README.md +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/pyproject.toml +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/setup.cfg +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/__init__.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/git_interface.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/github.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-1.0.2 → socketsecurity-1.0.3}/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.3'
|
|
@@ -269,6 +269,7 @@ class Messages:
|
|
|
269
269
|
[
|
|
270
270
|
"Alert",
|
|
271
271
|
"Package",
|
|
272
|
+
"url",
|
|
272
273
|
"Introduced by",
|
|
273
274
|
"Manifest File",
|
|
274
275
|
"CI Status"
|
|
@@ -287,6 +288,7 @@ class Messages:
|
|
|
287
288
|
state = "ignore"
|
|
288
289
|
row = [
|
|
289
290
|
alert.title,
|
|
291
|
+
alert.purl,
|
|
290
292
|
alert.url,
|
|
291
293
|
source_str,
|
|
292
294
|
manifest_str,
|
|
@@ -31,12 +31,13 @@ class Comments:
|
|
|
31
31
|
if ignore_all:
|
|
32
32
|
break
|
|
33
33
|
else:
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
full_name = f"{alert.pkg_type}/{alert.pkg_name}"
|
|
35
|
+
purl = (full_name, alert.pkg_version)
|
|
36
|
+
purl_star = (full_name, "*")
|
|
36
37
|
if purl in ignore_commands or purl_star in ignore_commands:
|
|
37
|
-
|
|
38
|
+
log.info(f"Alerts for {alert.pkg_name}@{alert.pkg_version} ignored")
|
|
38
39
|
else:
|
|
39
|
-
|
|
40
|
+
log.info(f"Adding alert {alert.type} for {alert.pkg_name}@{alert.pkg_version}")
|
|
40
41
|
alerts.append(alert)
|
|
41
42
|
return alerts
|
|
42
43
|
|
|
@@ -120,7 +121,7 @@ class Comments:
|
|
|
120
121
|
socket_comments["security"] = comment
|
|
121
122
|
elif "socket-overview-comment-actions" in comment.body:
|
|
122
123
|
socket_comments["overview"] = comment
|
|
123
|
-
elif "SocketSecurity ignore".lower() in comment.
|
|
124
|
+
elif "SocketSecurity ignore".lower() in comment.body_list[0].lower():
|
|
124
125
|
if "ignore" not in socket_comments:
|
|
125
126
|
socket_comments["ignore"] = []
|
|
126
127
|
socket_comments["ignore"].append(comment)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|