From 7d9e2f72b372abe577a5d2a11372d4274bb112d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiago=20Figueir=C3=B3?= <tfigueiro@gitlab.com> Date: Wed, 18 Aug 2021 13:31:10 +1000 Subject: [PATCH] Do not count broken security reports as errors --- ee/app/services/security/track_scan_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ee/app/services/security/track_scan_service.rb b/ee/app/services/security/track_scan_service.rb index 2b9eebe372c..f35563f2a71 100644 --- a/ee/app/services/security/track_scan_service.rb +++ b/ee/app/services/security/track_scan_service.rb @@ -13,6 +13,8 @@ module Security def execute build.unmerged_security_reports.reports.each { |report_type, report| track_scan_event(report_type, report) } + rescue SecurityReportParserError + nil end private -- 2.30.9