Skip to content

Doug/fix new package bug #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "hatchling.build"

[project]
name = "socketsecurity"
version = "2.1.12"
version = "2.1.14"
requires-python = ">= 3.10"
license = {"file" = "LICENSE"}
dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion socketsecurity/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__author__ = 'socket.dev'
__version__ = '2.1.12'
__version__ = '2.1.14'
2 changes: 1 addition & 1 deletion socketsecurity/core/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def from_diff_artifact(cls, data: dict) -> "Package":
ValueError: If reference data cannot be found in DiffArtifact
"""
ref = None
if data["diffType"] in ["added", "updated"] and data.get("head"):
if data["diffType"] in ["added", "updated", "unchanged"] and data.get("head"):
ref = data["head"][0]
elif data["diffType"] in ["removed", "replaced"] and data.get("base"):
ref = data["base"][0]
Expand Down
2 changes: 1 addition & 1 deletion socketsecurity/socketcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def main_code():
output_handler.handle_output(diff)

# Handle license generation
if diff is not None and config.generate_license:
if diff is not None and diff.id != "no_diff_id" and config.generate_license:
all_packages = {}
for purl in diff.packages:
package = diff.packages[purl]
Expand Down
Loading