[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
- Selector for policy rule type
- Add criteria three type options:
directoryidentifierfile_path
- 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 🤖