Skip to content

Commit 92c0335

Browse files
committed
Include unchanged alerts in GitLab report
Signed-off-by: lelia <2418071+lelia@users.noreply.github.com>
1 parent 8159f3a commit 92c0335

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

socketsecurity/core/messages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,8 @@ def create_security_comment_gitlab(diff: Diff) -> dict:
767767

768768
dep_files_map: dict = {}
769769

770-
for alert in diff.new_alerts:
770+
all_alerts = list(diff.new_alerts) + list(getattr(diff, 'unchanged_alerts', []))
771+
for alert in all_alerts:
771772
vulnerability = {
772773
"id": Messages.generate_uuid_from_alert_gitlab(alert),
773774
"category": "dependency_scanning",

0 commit comments

Comments
 (0)