-
Notifications
You must be signed in to change notification settings - Fork 177
chore: move secret ignoring logic inside the scanner #1016
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1016 +/- ##
==========================================
- Coverage 92.08% 92.03% -0.05%
==========================================
Files 181 181
Lines 7728 7706 -22
==========================================
- Hits 7116 7092 -24
- Misses 612 614 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
00144cd to
00dc593
Compare
agateau-gg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor remarks, but this looks much cleaner! ✨
58e2ed4 to
f63ed44
Compare
f50e7a2 to
5d11cb0
Compare
agateau-gg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor remarks.
gg-mmill
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review !
About the ignoring, I had to change what I did here when implementing the all-secrets option (future MR, not ready yet): separate the computation of the ignore reason, and the actual ignoring, see https://github.com/GitGuardian/ggshield/pull/1024/files#diff-37638c3845d9f616b7031dec851a57324bec777285097c841b887d2a1f9dd34eR236
e57e9cf to
d41e7ec
Compare
27cbe61 to
4fb68d1
Compare
agateau-gg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks better now, thanks for this work!
Context
Currently, there are logic related to ignoring secrets in two places:
What has been done
Move all the logic to the scanner:
Validation
Need to add tests for the scannerDoneWill also perform some manual validation
PR check list
skip-changeloglabel has been added to the PR.