Commit 3a980767 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch '210327-add-scanner-queries' into 'master'

Add vulnerability scanner queries

See merge request gitlab-org/gitlab!36633
parents 8d00acb2 452014d1
#import "./vulnerablity_scanner.fragment.graphql"
query groupSpecificScanners($fullPath: ID!) {
group(fullPath: $fullPath) {
vulnerabilityScanners {
nodes {
...VulnerabilityScanner
}
}
}
}
......@@ -9,6 +9,7 @@ query group(
$projectId: [ID!]
$severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!]
) {
group(fullPath: $fullPath) {
......@@ -22,6 +23,7 @@ query group(
first: $first
severity: $severity
reportType: $reportType
scanner: $scanner
state: $state
projectId: $projectId
) {
......
#import "./vulnerablity_scanner.fragment.graphql"
query instanceSpecificScanners {
instanceSecurityDashboard {
vulnerabilityScanners {
nodes {
...VulnerabilityScanner
}
}
}
}
......@@ -7,6 +7,7 @@ query instance(
$projectId: [ID!]
$severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!]
) {
vulnerabilities(
......@@ -16,6 +17,7 @@ query instance(
reportType: $reportType
state: $state
projectId: $projectId
scanner: $scanner
) {
nodes {
...Vulnerability
......
#import "./vulnerablity_scanner.fragment.graphql"
query projectSpecificScanners($fullpath: id!) {
project(fullPath: $fullPath) {
vulnerabilityScanners {
nodes {
...VulnerabilityScanner
}
}
}
}
......@@ -7,6 +7,7 @@ query project(
$first: Int
$severity: [VulnerabilitySeverity!]
$reportType: [VulnerabilityReportType!]
$scanner: [String!]
$state: [VulnerabilityState!]
) {
project(fullPath: $fullPath) {
......@@ -15,6 +16,7 @@ query project(
first: $first
severity: $severity
reportType: $reportType
scanner: $scanner
state: $state
) {
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