File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
7
7
[project ]
8
8
name = " socketsecurity"
9
- version = " 2.1.17 "
9
+ version = " 2.1.18 "
10
10
requires-python = " >= 3.10"
11
11
license = {"file" = " LICENSE" }
12
12
dependencies = [
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ requests==2.32.3
59
59
# via socketsecurity
60
60
smmap == 5.0.2
61
61
# via gitdb
62
- socket-sdk-python == 2.0.15
62
+ socket-sdk-python == 2.1.5
63
63
# via socketsecurity
64
64
typing-extensions == 4.12.2
65
65
# via socket-sdk-python
Original file line number Diff line number Diff line change 1
1
__author__ = 'socket.dev'
2
- __version__ = '2.1.17 '
2
+ __version__ = '2.1.18 '
Original file line number Diff line number Diff line change @@ -667,13 +667,13 @@ def create_new_diff(
667
667
"""
668
668
log .debug (f"starting create_new_diff with no_change: { no_change } " )
669
669
if no_change :
670
- return Diff (id = "no_diff_id" )
670
+ return Diff (id = "no_diff_id" , diff_url = "" , report_url = "" )
671
671
672
672
# Find manifest files
673
673
files = self .find_files (path )
674
674
files_for_sending = self .load_files_for_sending (files , path )
675
675
if not files :
676
- return Diff (id = "no_diff_id" )
676
+ return Diff (id = "no_diff_id" , diff_url = "" , report_url = "" )
677
677
678
678
try :
679
679
# Get head scan ID
@@ -802,6 +802,10 @@ def create_diff_report(
802
802
diff .new_capabilities = Core .get_capabilities_for_added_packages (added_packages )
803
803
804
804
Core .add_purl_capabilities (diff )
805
+ if not hasattr (diff , "diff_url" ):
806
+ diff .diff_url = None
807
+ if not hasattr (diff , "report_url" ):
808
+ diff .report_url = None
805
809
806
810
return diff
807
811
You can’t perform that action at this time.
0 commit comments