Prevent running scans from execution policies after downgrading license
What does this MR do and why?
With this MR we are preventing running scans defined with scheduled Scan Execution Policies when account is downgraded from Ultimate version.
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.
How to set up and validate locally
- Create new instance
- Add license for Ultimate
- Create new project/group and create new Scan Execution Policy with scheduled run to run every day at specified time
- Ensure that the job is executing
- Remove the license from your instance
- Observe that job is no longer scheduled
Related to #466729