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

repos have hooks.gitleaks error unclear? #44

Open
jadudm opened this issue Mar 22, 2021 · 0 comments
Open

repos have hooks.gitleaks error unclear? #44

jadudm opened this issue Mar 22, 2021 · 0 comments

Comments

@jadudm
Copy link

jadudm commented Mar 22, 2021

✗ repos have hooks.gitleaks set to true
   (in test file caulked.bats, line 60)
     `./check_repos.sh $HOME check_hooks_gitleaks >&3' failed
   Initialized empty Git repository in /private/var/folders/8x/vrpz2njj5vv0ls0xtr32_w240000gn/T/gittest.aVPb6T/.git/

This does not give me, as a user, a lot to go on. What repository did I do this awful thing to?

(After 10m of digging around... perhaps this could be a PR, but...)

My solution was to add the following to the else case of check_hooks_gitleaks() in check_repos.sh:

        >&2 echo "hooks.gitleaks set to false: $gitrepo"

right before return 1. This then told me exactly which repositories were at fault.

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

1 participant