Skip to content

Add syntax highlighting to Security Configuration code snippets

Dheeraj Joshi requested to merge djadmin-syntax-highlight-yaml into master

Implements #332973 (closed)

What does this MR do?

Add syntax highlighting for YAML based code snippets for configuring security scans.

Follow-up

  • #337844 (will help in removing extra whitespace in the editor)

Screenshots (strongly suggested)

DAST

before after
image image

API Fuzzing

before after
image image

Other themes

image

How to test this

  1. Navigate to a project's Security Configuration page at /:namespace/:project/-/security/configuration.
  2. Click on Enable or Manage button for DAST.
  3. Click on Generate Code Snippet

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
Edited by Dheeraj Joshi

Merge request reports