Commit bd1827d0 authored by Tetiana Chupryna's avatar Tetiana Chupryna Committed by Grzegorz Bizon

Remove deprecated fields from ContainerScanning parser

parent 080a8699
...@@ -67,10 +67,7 @@ module Gitlab ...@@ -67,10 +67,7 @@ module Gitlab
'url' => vulnerability['link'] 'url' => vulnerability['link']
} }
], ],
'links' => [{ 'url' => vulnerability['link'] }], 'links' => [{ 'url' => vulnerability['link'] }]
'priority' => 'Unknown',
'url' => vulnerability['link'],
'tool' => 'clair'
} }
end end
......
...@@ -74,12 +74,9 @@ describe Gitlab::Ci::Parsers::Security::ContainerScanning do ...@@ -74,12 +74,9 @@ describe Gitlab::Ci::Parsers::Security::ContainerScanning do
}, },
'links' => [{ 'url' => 'https://security-tracker.debian.org/tracker/CVE-2017-18269' }], 'links' => [{ 'url' => 'https://security-tracker.debian.org/tracker/CVE-2017-18269' }],
'description' => 'SSE2-optimized memmove implementation problem.', 'description' => 'SSE2-optimized memmove implementation problem.',
'priority' => 'Unknown',
'scanner' => { 'id' => 'clair', 'name' => 'Clair' }, 'scanner' => { 'id' => 'clair', 'name' => 'Clair' },
'severity' => 'critical', 'severity' => 'critical',
'solution' => 'Upgrade glibc from 2.24-11+deb9u3 to 2.24-11+deb9u4', 'solution' => 'Upgrade glibc from 2.24-11+deb9u3 to 2.24-11+deb9u4'
'tool' => 'clair',
'url' => 'https://security-tracker.debian.org/tracker/CVE-2017-18269'
} ) } )
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment