From 2580ea1583265d669495d8d5bebca86117057c11 Mon Sep 17 00:00:00 2001 From: Alex Samorukov Date: Tue, 30 Aug 2022 14:57:40 +0200 Subject: [PATCH] Fix url validaton failures (#2783) While analyzing failure of the report schema validation i found URL looks like that: `https://ubuntu.com/security/notices/USN-5051-4 (regression only in trusty/esm)`. This causing gitlab to mark report as invalid. Patch provided just using first word of the url word. --- contrib/gitlab.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gitlab.tpl b/contrib/gitlab.tpl index f60d368d754..bc5dc3dc9c2 100644 --- a/contrib/gitlab.tpl +++ b/contrib/gitlab.tpl @@ -70,7 +70,7 @@ , {{- end -}} { - "url": "{{ . }}" + "url": "{{ regexFind "[^ ]+" . }}" } {{- end }} ]