Skip to content

Show generic 'code' type on vuln details

What does this MR do?

It adds a Vue component to render the generic report type code.

How to test this locally

  1. Create a new project, give it a gitlab-ci.yml file with the following contents:
stages:
    - dast

dast:
  stage: dast 
  image: alpine:3.10.2
  script:
    - pwd
  artifacts:
    reports:
      dast: dast.json
  1. Download https://gitlab.com/-/snippets/2121394 and add it to the project file dast.json
  2. Run a pipeline, view vulnerabilities within the pipeline's security tab

Screenshots (strongly suggested)

Screen_Shot_2021-06-01_at_2.20.46_pm

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

Edited by David Pisek

Merge request reports