Closed agateau-gg closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.74%. Comparing base (
e6233bd
) to head (57931f7
). Report is 6 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Looks good, just a question about design choices.
We decided to ignore lines that were removed by another parent. Is there no risk of leak with this decision?
That's a good question. The new merge commit policy assumes parent commits of a merge have already been scanned. This means it would even be safe to ignore all removed lines, since it would be unlikely to find a valid multi-match secret from the combination of lines coming from different commits.
We keep those coming from one of the parents so that the patch we show has consistent line numbers.
Context
GGShield output handlers currently do not support multi-parent commits. When they try to output them, they fail with list index errors:
This only happens in the
main
branch, not in the current release.What has been done
Workaround this by post-processing the diff to turn it into a single-parent commit.
Validation
Using the same repository as in "Context":
PR check list
skip-changelog
label has been added to the PR.(skip-changelog because this bug is not in the current release)