gitleaks
gitleaks copied to clipboard
Problem loading config in Windows platform
Hi,
I am trying to load config .toml file using below command in windows. gitleaks --path="F:\Test\secret_scan\vuln_app" --no-git --report="F:\Test\secret_scan\scan_report.json" --config-path="F:\Test\secret_scan\gitleaks\examples\leaky-repo.toml"
But it is giving me below error.
time="2021-02-24T10:46:49+05:30" level=error msg="problem loading config: error parsing regexp: invalid escape sequence: \\T"
I have tried with multiple .toml files however nothing works. Even for a blank .toml file also it gives same error. However same command works fine in linux platform.

cc @zricethezav
Best Regards
Can be mitigated by running in git bash
I'm facing the same issue. And git bash can't be ran on every machine (it may be restricted by other security tools)
Hello!
Can we take a look at those .toml files that we are using as config?
Thank you!
any toml config manifested the same way actually.
I unfortunately do not have a windows machine to test on. If someone could provide a solution that would be great
Reverse the slashes will work. Use / instead of \
Problem does not exist anymore with Gitleaks v8