policy name: users_allowed_to_bypass_ruleset
Rulesets rules are not enforced for some users. When defining rulesets it is recommended to make sure that no one is allowed to bypass these rules in order to avoid inadvertent or intentional alterations to critical code which can lead to potential errors or vulnerabilities in the software.
Attackers that gain access to a user that can bypass the ruleset rules can compromise the codebase without anyone noticing, introducing malicious code that would go straight ahead to production.
- Go to the repository settings page
- Under “Code and automation”, select “Rules -> Rulesets”
- Find the relevant ruleset
- Empty the “Bypass list”
- Press “Save Changes”