Commit 452014d1 authored by Alexander Turinske's avatar Alexander Turinske

Add vulnerability scanner queries

- add vulnerabilityScanner fragment
- use said fragment in queries for instance/group/project scanners
- update vulnerability getters to take new scanner property
parent db8740c0
#import "./vulnerablity_scanner.fragment.graphql"
query groupSpecificScanners($fullPath: ID!) {
group(fullPath: $fullPath) {
vulnerabilityScanners {
nodes {
...VulnerabilityScanner
}
}
}
}
...@@ -9,6 +9,7 @@ query group( ...@@ -9,6 +9,7 @@ query group(
$projectId: [ID!] $projectId: [ID!]
$severity: [VulnerabilitySeverity!] $severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!] $reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!] $state: [VulnerabilityState!]
) { ) {
group(fullPath: $fullPath) { group(fullPath: $fullPath) {
...@@ -22,6 +23,7 @@ query group( ...@@ -22,6 +23,7 @@ query group(
first: $first first: $first
severity: $severity severity: $severity
reportType: $reportType reportType: $reportType
scanner: $scanner
state: $state state: $state
projectId: $projectId projectId: $projectId
) { ) {
......
#import "./vulnerablity_scanner.fragment.graphql"
query instanceSpecificScanners {
instanceSecurityDashboard {
vulnerabilityScanners {
nodes {
...VulnerabilityScanner
}
}
}
}
...@@ -7,6 +7,7 @@ query instance( ...@@ -7,6 +7,7 @@ query instance(
$projectId: [ID!] $projectId: [ID!]
$severity: [VulnerabilitySeverity!] $severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!] $reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!] $state: [VulnerabilityState!]
) { ) {
vulnerabilities( vulnerabilities(
...@@ -16,6 +17,7 @@ query instance( ...@@ -16,6 +17,7 @@ query instance(
reportType: $reportType reportType: $reportType
state: $state state: $state
projectId: $projectId projectId: $projectId
scanner: $scanner
) { ) {
nodes { nodes {
...Vulnerability ...Vulnerability
......
#import "./vulnerablity_scanner.fragment.graphql"
query projectSpecificScanners($fullpath: id!) {
project(fullPath: $fullPath) {
vulnerabilityScanners {
nodes {
...VulnerabilityScanner
}
}
}
}
...@@ -7,6 +7,7 @@ query project( ...@@ -7,6 +7,7 @@ query project(
$first: Int $first: Int
$severity: [VulnerabilitySeverity!] $severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!] $reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!] $state: [VulnerabilityState!]
) { ) {
project(fullPath: $fullPath) { project(fullPath: $fullPath) {
...@@ -15,6 +16,7 @@ query project( ...@@ -15,6 +16,7 @@ query project(
first: $first first: $first
severity: $severity severity: $severity
reportType: $reportType reportType: $reportType
scanner: $scanner
state: $state state: $state
) { ) {
nodes { nodes {
......
fragment VulnerabilityScanner on VulnerabilityScanner {
externalId
name
reportType
vendor
}
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