From 7ae2d568ef42244ef4022150ecc3330187c0d647 Mon Sep 17 00:00:00 2001 From: skyanth Date: Fri, 10 Feb 2017 14:18:36 +0100 Subject: [PATCH] =?UTF-8?q?prefix=20finding=20ids=20with=20=E2=80=98f?= =?UTF-8?q?=E2=80=99=20so=20xml=20remains=20valid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/gitlab-to-pentext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gitlab-to-pentext.py b/scripts/gitlab-to-pentext.py index a02fd6a..4c9fe31 100644 --- a/scripts/gitlab-to-pentext.py +++ b/scripts/gitlab-to-pentext.py @@ -41,7 +41,7 @@ def add_finding(issue, options): title), options) threatLevel = 'Moderate' finding_type = 'TODO' - finding_id = '{0}-{1}'.format(issue.iid, valid_filename(title)) + finding_id = 'f{0}-{1}'.format(issue.iid, valid_filename(title)) filename = 'findings/{0}.xml'.format(finding_id) finding = collections.OrderedDict() finding['title'] = title