Commit 7037d42a authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'sk/330724-fix-scan-details' into 'master'

Add Cluster Image Scanning to vuln scan details

See merge request gitlab-org/gitlab!65962
parents 7aa7cae1 561e317d
......@@ -38,6 +38,10 @@ query pipelineSecuritySummary($fullPath: ID!, $pipelineIid: ID!) {
vulnerabilitiesCount
...SecurityReportSummaryScans
}
clusterImageScanning {
vulnerabilitiesCount
...SecurityReportSummaryScans
}
}
}
}
......
......@@ -86,6 +86,7 @@ describe('Security reports summary component', () => {
${{ dependencyScanning: { vulnerabilitiesCount: 123 } }} | ${'Dependency Scanning'}
${{ apiFuzzing: { vulnerabilitiesCount: 123 } }} | ${'API Fuzzing'}
${{ coverageFuzzing: { vulnerabilitiesCount: 123 } }} | ${'Coverage Fuzzing'}
${{ clusterImageScanning: { vulnerabilitiesCount: 123 } }} | ${'Cluster Image Scanning'}
`('shows user-friendly scanner name for $string', ({ summaryProp, string }) => {
createWrapper({
propsData: {
......@@ -104,6 +105,7 @@ describe('Security reports summary component', () => {
${{ dependencyScanning: null }} | ${'Dependency Scanning'}
${{ apiFuzzing: null }} | ${'API Fuzzing'}
${{ coverageFuzzing: null }} | ${'Coverage Fuzzing'}
${{ clusterImageScanning: null }} | ${'Cluster Image Scanning'}
`('does not show $report report if scanner did not run', ({ summaryProp, report }) => {
createWrapper({
propsData: {
......
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