Update tags query to include sub-groups
What does this MR do and why?
Update tags query to include sub-groups
- use membership setting to retrieve inherited tags for security policies
- on demand scans also use this component, but they are not affected because they are not available for groups
Changelog: changed
EE: true
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
Numbered steps to set up and validate the change are strongly suggested.
- Upload a GitLab Ultimate license
- Create a top-level group (
parent
), either on SaaS or Self-Managed, with an Ultimate subscription applied. - Create a subgroup (
parent/subgroup
) - Create a project (
parent/subgroup/project
) - Create a top-level Group Runner on
parent
. Configure the Runner with a tag, such assep-example-tag
. - In the subgroup, go to Secure > Policies. Select New Policy > Scan execution policy.
- Add a tag to the scan
- Verify the top-level runner tag appears
Related to #426328 (closed)