Commit 0b1d8bf8 authored by Jonathan Schafer's avatar Jonathan Schafer

Return scanner ID in Vulnerability Scanner query

Updated documentation
parent f2b06d08
......@@ -7125,6 +7125,7 @@ Represents a vulnerability scanner.
| Field | Type | Description |
| ----- | ---- | ----------- |
| `externalId` | [`String`](#string) | External ID of the vulnerability scanner. |
| `id` | [`ID`](#id) | ID of the scanner. |
| `name` | [`String`](#string) | Name of the vulnerability scanner. |
| `reportType` | [`VulnerabilityReportType`](#vulnerabilityreporttype) | Type of the vulnerability report. |
| `vendor` | [`String`](#string) | Vendor of the vulnerability scanner. |
......
......@@ -7,6 +7,9 @@ module Types
authorize :read_vulnerability_scanner
field :id, GraphQL::ID_TYPE, null: true,
description: 'ID of the scanner.'
field :name, GraphQL::STRING_TYPE, null: true,
description: 'Name of the vulnerability scanner.'
......
---
title: Expose vulnerability Scanner ID through GraphQL query
merge_request: 58595
author:
type: changed
......@@ -7,7 +7,7 @@ RSpec.describe GitlabSchema.types['VulnerabilityScanner'] do
let_it_be(:user) { create(:user) }
let(:fields) do
%i[name external_id vendor report_type]
%i[id name external_id vendor report_type]
end
before do
......
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