GraphQL `getMRCodequalityAndSecurityReports` query 500 on gitlab.com
Whilst reviewing Update github.com/charmbracelet/git-lfs-transfe... (gitlab-shell!943 - merged), I noticed an error popup 'Something went wrong fetching the scanner findings. Please try again.' that continued to appear:
After inspecting the various HTTP requests, I found a failing https://gitlab.com/api/graphql
call. Performing the following query at https://gitlab.com/-/graphql-explorer results in a 500 error:
query getMRCodequalityAndSecurityReports($fullPath: ID!, $iid: String!) {
project(fullPath: $fullPath) {
id
mergeRequest(iid: $iid) {
id
title
project {
id
nameWithNamespace
fullPath
__typename
}
hasSecurityReports
codequalityReportsComparer {
status
report {
status
newErrors {
description
fingerprint
severity
filePath
line
webUrl
engineName
__typename
}
resolvedErrors {
description
fingerprint
severity
filePath
line
webUrl
engineName
__typename
}
existingErrors {
description
fingerprint
severity
filePath
line
webUrl
engineName
__typename
}
summary {
errored
resolved
total
__typename
}
__typename
}
__typename
}
sastReport: findingReportsComparer(reportType: SAST) {
status
report {
added {
identifiers {
externalId
externalType
name
url
__typename
}
uuid
title
description
state
severity
foundByPipelineIid
location {
... on VulnerabilityLocationSast {
file
startLine
endLine
vulnerableClass
vulnerableMethod
blobPath
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
__typename
}
}
with variables:
{
"fullPath": "gitlab-org/gitlab-shell",
"iid": "943"
}
Edited by Ash McKenzie