Skip to content

Validate Scan Policy schema with JSON Schema

What does this MR do?

This change adds additional validation to Scan Policy schema to make sure we are responding with error message when Scan Policy is invalid or missing. The problem was identified during the workflowverification of the related issue: #299215 (comment 555697778) (scenario 6. and 7.)

Screenshots

image

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] 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 #299215 (closed)

Edited by Alan (Maciej) Paruszewski

Merge request reports

Loading