Commit 6bba1919 authored by Fernando's avatar Fernando

Add Coverage and API Fuzzing vuln count summaries

* Add to Security tab on pipeline show view

Changelog: added
parent 98ecf05d
...@@ -24,6 +24,12 @@ query($fullPath: ID!, $pipelineIid: ID!) { ...@@ -24,6 +24,12 @@ query($fullPath: ID!, $pipelineIid: ID!) {
dependencyScanning { dependencyScanning {
vulnerabilitiesCount vulnerabilitiesCount
} }
apiFuzzing {
vulnerabilitiesCount
}
coverageFuzzing {
vulnerabilitiesCount
}
} }
} }
} }
......
---
title: Add Coverage and API Fuzzing vuln count summaries
merge_request: 61827
author:
type: added
...@@ -84,6 +84,8 @@ describe('Security reports summary component', () => { ...@@ -84,6 +84,8 @@ describe('Security reports summary component', () => {
${{ sast: { vulnerabilitiesCount: 123 } }} | ${'SAST'} ${{ sast: { vulnerabilitiesCount: 123 } }} | ${'SAST'}
${{ containerScanning: { vulnerabilitiesCount: 123 } }} | ${'Container Scanning'} ${{ containerScanning: { vulnerabilitiesCount: 123 } }} | ${'Container Scanning'}
${{ dependencyScanning: { vulnerabilitiesCount: 123 } }} | ${'Dependency Scanning'} ${{ dependencyScanning: { vulnerabilitiesCount: 123 } }} | ${'Dependency Scanning'}
${{ apiFuzzing: { vulnerabilitiesCount: 123 } }} | ${'API Fuzzing'}
${{ coverageFuzzing: { vulnerabilitiesCount: 123 } }} | ${'Coverage Fuzzing'}
`('shows user-friendly scanner name for $string', ({ summaryProp, string }) => { `('shows user-friendly scanner name for $string', ({ summaryProp, string }) => {
createWrapper({ createWrapper({
propsData: { propsData: {
...@@ -100,6 +102,8 @@ describe('Security reports summary component', () => { ...@@ -100,6 +102,8 @@ describe('Security reports summary component', () => {
${{ sast: null }} | ${'SAST'} ${{ sast: null }} | ${'SAST'}
${{ containerScanning: null }} | ${'Container Scanning'} ${{ containerScanning: null }} | ${'Container Scanning'}
${{ dependencyScanning: null }} | ${'Dependency Scanning'} ${{ dependencyScanning: null }} | ${'Dependency Scanning'}
${{ apiFuzzing: null }} | ${'API Fuzzing'}
${{ coverageFuzzing: null }} | ${'Coverage Fuzzing'}
`('does not show $report report if scanner did not run', ({ summaryProp, report }) => { `('does not show $report report if scanner did not run', ({ summaryProp, report }) => {
createWrapper({ createWrapper({
propsData: { 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