Override pushrule for security policy project
What does this MR do and why?
This change overrides the push rules for a security policy project when it is created for the first time. When the push rules are configured at the group level, the security policy project will be blocked from creating a policy if the default commit message & branch name violate the rule configured at the group level.
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
Push Rule
MR in security policy project
Commit blocked by push rule
How to set up and validate locally
- Create a group and create a push rule from
Settings
->Repository
->Pre-defined push rules
withRequire expression in commit messages
,Reject expression in commit messages
&Branch name
- Create a security policy from
Secure
->Policies
and verify that the MR with policy changes is created - Create a different project within the same group and create a commit/branch that violates the push rule and verify that it is blocked
Addresses #463064 (closed)
Edited by Sashi Kumar Kumaresan