Implement Resolve This Vulnerability graphql Mutation
What does this MR do and why?
Implement the mutation to enable Resolve This Vulnerability services to be engaged with via the GraphQL api (and thereby the interface)
Screenshots or screen recordings
simplescreenrecorder-2023-11-01_23.00.33
Testing
mutation {
aiAction(input: { resolveVulnerability: {resourceId: "gid://gitlab/Vulnerability/1012" }}) {
requestId
}
}
Execution of the above AI action on a valid SAST vulnerability id, assuming you have a functional VertexAI local configuration, should result in a merge request being attached to the vulnerability's project with an AI retrieved remediation.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #426575 (closed)
Edited by Gregory Havenga