Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No result when scan #1377

Open
Sziman opened this issue Mar 17, 2024 · 1 comment
Open

No result when scan #1377

Sziman opened this issue Mar 17, 2024 · 1 comment

Comments

@Sziman
Copy link

Sziman commented Mar 17, 2024

Hi All,
I'm new in gitleaks,
I'ved install gitleaks vid docker
This is my command:
docker run -v ~/Documents/scan/gitleak:/path zricethezav/gitleaks:latest detect -v
For sure i have txt file with secret password.
For sure i have .git dir
I'm trying to scan from Documents/scan/gitleak dir
When scan via docker run. This is my result:
7:12AM ERR [git] fatal: not a git repository (or any of the parent directories): .git
7:12AM ERR error="stderr is not empty"
7:12AM INF scan completed in 8.81ms
7:12AM INF no leaks found
What am i doing worng?

Thanks,
Shahar

@bastienvty
Copy link

It seems you are not working on a git repository. Can you try with --no-git and see what it says?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants