Skip to content

Add ability to create scan execution policy MR

Alexander Turinske requested to merge 273789-create-merge-request into master

What does this MR do?

Add ability to create scan execution policy MR

  • when security project exists and is linked, create policy and open MR for modifications to scan_policy.yml
  • create new mutations to create scan_execution policy
  • add tests

How to test

Screenshots or Screencasts (strongly suggested)

Title Before After
initial state initial_state
button loading state loading_state
success successful_policy_on_existing_project success_-_diffs success_-_disabled
error with meaningful message error_state
graphql error test after_graphql_error
no permission no_access

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #273789 (closed)

Edited by Alexander Turinske

Merge request reports

Loading