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

Ensure ALL pushed commits are scanned and the default config is usable #22

Merged
merged 3 commits into from Jan 22, 2021
Merged

Conversation

niall-byrne
Copy link
Contributor

@niall-byrne niall-byrne commented Jan 14, 2021

v1.20 was working great for me, however I noticed if I bundled a few commits together and pushed, only the first one was scanned. There is a performance hit for this, but I think this is basic functionality that you want to ensure works properly.

I also was throwing an error with fallback to the default config on master.

If the user doesn't have the config file present in their repo, things break down
I included a change to the if statement to address this.

It might be helpful to test the action works as expected both with, and without a custom config file.

@niall-byrne niall-byrne changed the title Ensure All Commits and Scanned and Default Config Is Usable Ensure ALL pushed commits are scanned and the default config is usable Jan 14, 2021
@zricethezav
Copy link
Collaborator

solid, thanks!

@zricethezav zricethezav merged commit 6e41781 into gitleaks:master Jan 22, 2021
weineran pushed a commit that referenced this pull request Sep 9, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants