Skip to content

Add customized README file when creating new Security Policy Project

What does this MR do?

This MR adds new logic to add customized README file when creating new project and is using this change made to Projects::CreateService in SecurityOrchestrationPolicies::ProjectCreateService to create new Security Policy project with README file with additional information about policies.

Screenshots or Screencasts (strongly suggested)

screencapture-gdk-alan-3000-root-compliance-security-policy-project-2021-08-24-23_27_28

How to setup and validate locally (strongly suggested)

  1. Create new project, take project path.
  2. Go to GraphQL Explorer (/-/graphql-explorer) and use mutation to create new Scan Execution Policy project:
mutation {
  securityPolicyProjectCreate(input: { projectPath: "root/compliance" }) {
    errors
    project {
      webUrl
    }
  }
}
  1. Get the link from the response webUrl and go to project's README file and verify if it was created.

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 #334358 (closed)

Merge request reports

Loading