socketsecurity 0.0.76__tar.gz → 0.0.77__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.76/socketsecurity.egg-info → socketsecurity-0.0.77}/PKG-INFO +1 -1
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/pyproject.toml +1 -1
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/__init__.py +1 -1
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/github.py +16 -8
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/messages.py +2 -1
- {socketsecurity-0.0.76 → socketsecurity-0.0.77/socketsecurity.egg-info}/PKG-INFO +1 -1
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/LICENSE +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/README.md +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/setup.cfg +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/__init__.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/classes.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/exceptions.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/gitlab.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/issues.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/core/licenses.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity/socketcli.py +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity.egg-info/SOURCES.txt +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity.egg-info/dependency_links.txt +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity.egg-info/entry_points.txt +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity.egg-info/requires.txt +0 -0
- {socketsecurity-0.0.76 → socketsecurity-0.0.77}/socketsecurity.egg-info/top_level.txt +0 -0
|
@@ -280,15 +280,23 @@ class Github:
|
|
|
280
280
|
ignore_all = True
|
|
281
281
|
else:
|
|
282
282
|
command = command.lstrip("ignore").strip()
|
|
283
|
-
name, version = command.
|
|
284
|
-
|
|
283
|
+
name, version = command.rsplit("@", 1)
|
|
284
|
+
ecosystem, name = name.split("/", 1)
|
|
285
|
+
data = (ecosystem, name, version)
|
|
285
286
|
ignore_commands.append(data)
|
|
286
287
|
return ignore_all, ignore_commands
|
|
287
288
|
|
|
288
289
|
@staticmethod
|
|
289
|
-
def is_ignore(
|
|
290
|
+
def is_ignore(
|
|
291
|
+
pkg_ecosystem: str,
|
|
292
|
+
pkg_name: str,
|
|
293
|
+
pkg_version: str,
|
|
294
|
+
ecosystem: str,
|
|
295
|
+
name: str,
|
|
296
|
+
version: str
|
|
297
|
+
) -> bool:
|
|
290
298
|
result = False
|
|
291
|
-
if pkg_name == name and (pkg_version == version or version == "*"):
|
|
299
|
+
if pkg_ecosystem == ecosystem and pkg_name == name and (pkg_version == version or version == "*"):
|
|
292
300
|
result = True
|
|
293
301
|
return result
|
|
294
302
|
|
|
@@ -317,13 +325,13 @@ class Github:
|
|
|
317
325
|
if "start-socket-alerts-table" in line:
|
|
318
326
|
start = True
|
|
319
327
|
elif start and "end-socket-alerts-table" not in line and not Github.is_heading_line(line) and line != '':
|
|
320
|
-
title, package, introduced_by, manifest = line.
|
|
328
|
+
title, package, introduced_by, manifest = line.strip("|").split("|")
|
|
321
329
|
details, _ = package.split("](")
|
|
322
|
-
|
|
330
|
+
pkg_ecosystem, details = details.strip("[").split("/", 1)
|
|
323
331
|
pkg_name, pkg_version = details.split("@")
|
|
324
332
|
ignore = False
|
|
325
|
-
for name, version in ignore_commands:
|
|
326
|
-
if ignore_all or Github.is_ignore(pkg_name, pkg_version, name, version):
|
|
333
|
+
for ecosystem, name, version in ignore_commands:
|
|
334
|
+
if ignore_all or Github.is_ignore(pkg_ecosystem, pkg_name, pkg_version, ecosystem, name, version):
|
|
327
335
|
ignore = True
|
|
328
336
|
if not ignore:
|
|
329
337
|
lines.append(line)
|
|
@@ -146,9 +146,10 @@ class Messages:
|
|
|
146
146
|
if ignore not in ignore_commands:
|
|
147
147
|
ignore_commands.append(ignore)
|
|
148
148
|
manifest_str, sources = Messages.create_sources(alert, "console")
|
|
149
|
+
purl_url = f"[{alert.purl}]({alert.url})"
|
|
149
150
|
row = [
|
|
150
151
|
alert.title,
|
|
151
|
-
|
|
152
|
+
purl_url,
|
|
152
153
|
", ".join(sources),
|
|
153
154
|
manifest_str
|
|
154
155
|
]
|
|
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-0.0.76 → socketsecurity-0.0.77}/socketsecurity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|