Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7af45bc

Browse files
authored
Fixed an issue where when there were new alerts the CLI wasn't correctly failing (#114)
1 parent f808583 commit 7af45bc

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.2.4"
9+
version = "2.2.5"
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.2.4'
2+
__version__ = '2.2.5'

socketsecurity/core/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def create_security_comment_sarif(diff) -> dict:
283283
@staticmethod
284284
def create_security_comment_json(diff: Diff) -> dict:
285285
scan_failed = False
286-
if len(diff.new_alerts) == 0:
286+
if len(diff.new_alerts) > 0:
287287
for alert in diff.new_alerts:
288288
alert: Issue
289289
if alert.error:

0 commit comments

Comments
 (0)