Skip to content

Commit aa0cff5

Browse files
committed
Fixed ref check for unchanged packages
1 parent 456a49a commit aa0cff5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
66

77
[project]
88
name = "socketsecurity"
9-
version = "2.1.13"
9+
version = "2.1.14"
1010
requires-python = ">= 3.10"
1111
license = {"file" = "LICENSE"}
1212
dependencies = [

socketsecurity/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
__author__ = 'socket.dev'
2-
__version__ = '2.1.13'
2+
__version__ = '2.1.14'

socketsecurity/core/classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def from_diff_artifact(cls, data: dict) -> "Package":
188188
ValueError: If reference data cannot be found in DiffArtifact
189189
"""
190190
ref = None
191-
if data["diffType"] in ["added", "updated"] and data.get("head"):
191+
if data["diffType"] in ["added", "updated", "unchanged"] and data.get("head"):
192192
ref = data["head"][0]
193193
elif data["diffType"] in ["removed", "replaced"] and data.get("base"):
194194
ref = data["base"][0]

0 commit comments

Comments
 (0)