Facing cannot spawn astextplain in gitleak scan
Murugaa19 opened this issue · comments
I am facing the below issue in the Gitleaks scan while running Pipeline with self-hosted Windows OS. Provide any solution to resolve this
ERR [git] error: cannot spawn astextplain: No such file or directory
ERR [git] fatal: unable to read files to diff
error="stderr is not empty"
WRN partial scan completed in 20.1s
WRN 2 leaks found in partial scan
Solution in RU from my wiki:
- Используя команду git config --list --show-origin узнать путь до конфигурационного файла Git
- Открыть конфигурационный файл Git
- Узнать пути до всех дополнительных конфигов, ознакомившись с секцией [include] при ее наличии:
- Удалить из конфига и всех дополнительных конфигов все секции связанные с astextplain