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

fix: secrets found with quotas #1350

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

baruchiro
Copy link
Contributor

I found some rules that returns the value ended with ". This happened because missing secretGroup value.

It is an hot fix.

For the future, I think we need:

  1. Refactor the validate function or create another suite of tests with declaration of the expected found secret.
  2. Fix the suffix regex to not include the ", because even with my change, it only fixes the Secret but not the Match

@baruchiro
Copy link
Contributor Author

@zricethezav Note this change is coming from my organization fork: Checkmarx/gitleaks.

If it helps you, I can recreate my other PRs from there.

Contact me on Discord if you want to discuss more about cooperation.

baruchiro pushed a commit to Checkmarx/2ms that referenced this pull request Feb 20, 2024
baruchiro added a commit to Checkmarx/gitleaks that referenced this pull request Mar 28, 2024
I found some rules that returns the value ended with `"`. This happened
because missing `secretGroup` value.

It is an _hot fix_.

For the future, I think we need:
1. Refactor the `validate` function or create another suite of tests
with declaration of the expected found secret.
1. Fix the suffix regex to not include the `"`, because even with my
change, it only fixes the `Secret` but not the `Match`

Original: gitleaks#1350
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

1 participant