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
Content is not correctly censored #413
Comments
can you assign this issue to me? |
Sure, here you are! |
Hey @agateau-gg!! I would like to contribute to this issue!! |
Hi @SuperAayush, great to hear! You can have a look at our CONTRIBUTING.md file to get started. Feel free to ask more questions about the task as you need to. |
Hey @agateau-gg!! I wanted to clear some of my doubts regarding the issue and was searching for Slack or Discord server for gg, I was unable to find one. Can you please let me know what is the best medium to have a conversion with you? |
Hello @SuperAayush, I took a look at this bug and I found it's a server-side issue. It seems the document is stripped of its white-spaces by the API, rendering the indices of the match invalid. This can be seen from the secrets detection playground: The value of I've opened an internal PR to fix this bug. This should be fixed in our next release. Sorry for any wasted time, because the bug was caused by our API. Your involvement was still valuable. Thank you for dedicating your time to help with our open-source CLI. I encourage you to ask any questions directly on the GitHub issues as we currently use it as our primary communication channel. |
The fix has been deployed. |
Environment
Describe the bug
Steps to reproduce:
secret.txt
with the following content (note the starting empty line)ggshield secret scan path secret.txt
Actual result:
Expected result:
Secret censored correctly
Note: when in commit (pre-commit, pre-push etc) the content is censored correctly. Same bug with
ggshield secret scan archive ...
The text was updated successfully, but these errors were encountered: