Commit a4b33e45 authored by Dheeraj Joshi's avatar Dheeraj Joshi Committed by Martin Wortschack

Add DAST evidence to Vulnerability Details

parent f143d46a
......@@ -112,6 +112,10 @@ export default {
<gl-friendly-wrap v-else :text="file" />
</vulnerability-detail>
<vulnerability-detail v-if="vulnerability.evidence" :label="s__('Vulnerability|Evidence')">
<gl-friendly-wrap :text="vulnerability.evidence" />
</vulnerability-detail>
<vulnerability-detail v-if="identifiers" :label="s__('Vulnerability|Identifiers')">
<span v-for="(identifier, i) in identifiers" :key="i">
<safe-link
......
---
title: Add evidence to vulnerability details
merge_request: 28315
author:
type: added
......@@ -43,6 +43,15 @@ exports[`VulnerabilityDetails component pin test renders correctly 1`] = `
</safe-link-stub>
</vulnerability-detail-stub>
<vulnerability-detail-stub
label="Evidence"
>
<gl-friendly-wrap-stub
symbols="/"
text="Credit Card Detected: Diners Card"
/>
</vulnerability-detail-stub>
<vulnerability-detail-stub
label="Identifiers"
>
......
......@@ -297,6 +297,7 @@ export const mockFindings = [
solution: 'Upgrade to version 2.1.1 or above.',
state: 'opened',
blob_path: '/gitlab-org/gitlab-ui/blob/ad137f0a8ac59af961afe47d04e5cc062c6864a9/yarn.lock',
evidence: 'Credit Card Detected: Diners Card',
},
{
id: null,
......
......@@ -22604,6 +22604,9 @@ msgstr ""
msgid "Vulnerability|Description"
msgstr ""
msgid "Vulnerability|Evidence"
msgstr ""
msgid "Vulnerability|File"
msgstr ""
......
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