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

Bufix/1100 protect stagged files #1121

Merged

Conversation

RafaelFigueiredo
Copy link
Contributor

Description:

This PR fix bug reported on issue #1100
gitleaks protect --staged now filter the content from .gitleaksignore from the findings.
The testdata created on testdata/repos/staged is a copy of small repo but with two secrets, one of them added to .gitleaksignore and the other not.

Checklist:

  • Does your PR pass tests?
  • Have you written new tests for your changes?
  • Have you lint your code locally prior to submission?

@zricethezav
Copy link
Collaborator

@RafaelFigueiredo Great job! Thanks for adding tests too 💯 🥳

@zricethezav zricethezav merged commit 9701bf1 into gitleaks:master Mar 21, 2023
1 of 2 checks passed
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