[Frontend]: Add new rule to vulnerability policy in policy editor

Why are we doing this work

Here is yaml schema:

rules:
  - type: vulnerability_found
    criteria:
    - type: file_path
      value: spec/**/*_spec.rb
  - type: vulnerability_found
    criteria:
    - type: directory
      value: test/
  - type: vulnerability_found
    criteria:
    - type: identifier
      value: CVE-2022-32224

New UI for vulnerability_found rule should be added for policy editor

  1. Selector for policy rule type
  2. Add criteria three type options:
    1. directory
    2. identifier
    3. file_path
  3. value - open field

Relevant links

Non-functional requirements

  • Documentation:
  • Feature flag: auto_dismiss_vulnerability_policies
  • Performance:
  • Testing:

Implementation plan

Verification steps

Edited by 🤖 GitLab Bot 🤖