This PR changes the default regex config file to use YAML format rather than TOML. TOML is still supported but it has some limitations when dealing with some specific regexes.
This PR also bumps Python version to 3.11 (supports 3.8 and earlier)
Notice that running n0s1 with "gitleaks.toml" will cause the regexes to not be loaded properly and no secrets will be matched. When using the same regexes, but loading them from "gitleaks.yaml", everything works as expected.
This PR changes the default regex config file to use YAML format rather than TOML. TOML is still supported but it has some limitations when dealing with some specific regexes.
This PR also bumps Python version to 3.11 (supports 3.8 and earlier)
Steps to reproduce the TOML regex issue:
Notice that file gitleaks.toml is only partially loaded by python toml module.
Testing:
Notice that running n0s1 with "gitleaks.toml" will cause the regexes to not be loaded properly and no secrets will be matched. When using the same regexes, but loading them from "gitleaks.yaml", everything works as expected.
References: