Skip to content

Fix SAST parser for no-sast pipelines

Furkan Ayhan requested to merge fix-sast-config-for-no-sast-pipelines into master

What does this MR do?

This MR fixes a bug that is caused by !62288 (merged).

In this MR, we are handling the pipelines that don't have a "sast" job in them.

Screenshots (strongly suggested)

When you have a .gitlab-ci.yml without a "sast" job and enter SAST Enable page

Screen_Shot_2021-06-07_at_15.02.05

you should see this page;

Screen_Shot_2021-06-07_at_15.02.18

However, the error causes this;

Screen_Shot_2021-06-07_at_15.03.08

Error details are in the bug issue with the Sentry link.

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 Furkan Ayhan

Merge request reports

Loading