Skip to content

Commit 26daaba

Browse files
authored
Update messages.py
1 parent ddebb87 commit 26daaba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

socketsecurity/core/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ def create_security_comment_sarif(diff) -> dict:
223223
socket_url = Messages.get_manifest_type_url(manifest_file, pkg_name, pkg_version)
224224

225225
# Prepare descriptions with <br/> replacements
226-
short_desc = f"{alert.props.get('note', '')}<br/><br/>Suggested Action:<br/>{alert.suggestion}"
227-
full_desc = f"{alert.title} - {alert.description.replace('\r\n', '<br/>')}\r\n<a href=\"{socket_url}\">{socket_url}</a>"
226+
short_desc = f"{alert.props.get('note', '')}<br/><br/>Suggested Action:<br/>{alert.suggestion}<br/><a href=\"{socket_url}\">{socket_url}</a>"
227+
full_desc = f"{alert.title} - {alert.description.replace('\r\n', '<br/>')}"
228228

229229
# Identify the line and snippet in the manifest file
230230
line_number, line_content = Messages.find_line_in_file(pkg_name, pkg_version, manifest_file)

0 commit comments

Comments
 (0)