Security for Bitbucket allows for creation of custom scanning rules using regular expressions. The rules can only be created, enabled, or disabled by Bitbucket Administrators or anyone that's been granted explicit access.
Please make sure the rules you add aren’t too broad, as they can impact the performance of Bitbucket.
To create a rule, access the settings page. The custom rules area appears near the bottom as shown:
If a secret on a single line matches more than one rule (built-in, custom, or a per-repository rule), only the first match will be reported.