From b45f0708785c91f1750e5adbfb02640a2d583500 Mon Sep 17 00:00:00 2001 From: Victor Zagorodny Date: Thu, 18 Jul 2019 11:40:48 +0000 Subject: [PATCH] [CE backport] Parse and store multiple security reports of the same category --- .../deprecated/gl-sast-report.json | 20 +++++++++++++++++++ .../master/gl-sast-report.json | 20 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/spec/fixtures/security-reports/deprecated/gl-sast-report.json b/spec/fixtures/security-reports/deprecated/gl-sast-report.json index a85b9be8b5f..2f7e47281e2 100644 --- a/spec/fixtures/security-reports/deprecated/gl-sast-report.json +++ b/spec/fixtures/security-reports/deprecated/gl-sast-report.json @@ -837,6 +837,11 @@ "start_line": 4 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - char", + "value": "char" + }, { "type": "cwe", "name": "CWE-119", @@ -869,6 +874,11 @@ "start_line": 8 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - fopen", + "value": "fopen" + }, { "type": "cwe", "name": "CWE-362", @@ -896,6 +906,11 @@ "start_line": 6 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - char", + "value": "char" + }, { "type": "cwe", "name": "CWE-119", @@ -929,6 +944,11 @@ "start_line": 7 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - strcpy", + "value": "strcpy" + }, { "type": "cwe", "name": "CWE-120", diff --git a/spec/fixtures/security-reports/master/gl-sast-report.json b/spec/fixtures/security-reports/master/gl-sast-report.json index 4bef3d22f70..345e1e9f83a 100644 --- a/spec/fixtures/security-reports/master/gl-sast-report.json +++ b/spec/fixtures/security-reports/master/gl-sast-report.json @@ -839,6 +839,11 @@ "start_line": 4 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - char", + "value": "char" + }, { "type": "cwe", "name": "CWE-119", @@ -871,6 +876,11 @@ "start_line": 8 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - fopen", + "value": "fopen" + }, { "type": "cwe", "name": "CWE-362", @@ -898,6 +908,11 @@ "start_line": 6 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - char", + "value": "char" + }, { "type": "cwe", "name": "CWE-119", @@ -931,6 +946,11 @@ "start_line": 7 }, "identifiers": [ + { + "type": "flawfinder_func_name", + "name": "Flawfinder - strcpy", + "value": "strcpy" + }, { "type": "cwe", "name": "CWE-120",