Add banner for deprecated custom scan action in SEP
requested to merge 477730-fe-add-deprecation-warning-for-custom-scan-execution-policy-action into master
What does this MR do and why?
This MR adds a banner that is displayed when any Scan execution policy contains deprecated custom
scan action based on custom_scan
deprecated property.
Depends on backend MR: Extend deprecated properties with custom scan a... (!162026 - merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Create a project
- Go to Secure -> Policies and create a new Scan execution policy and use the following YAML:
type: scan_execution_policy name: Custom CI description: '' enabled: true rules: - type: pipeline branch_type: all actions: - scan: custom ci_configuration: | custom_job: script: - echo "Custom job!"
- Go back to the policies list and verify that the policy has a deprecation icon and a banner is shown
Related to #477730 (closed)
Edited by Martin Čavoj