Commit d80a6863 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch 'djadmin-dast-evidence' into 'master'

Add DAST evidence to Vulnerability Details

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