GitGuardian / ggshield

Find and fix 400+ types of hardcoded secrets and 70+ types of infrastructure-as-code misconfigurations.
https://gitguardian.com
MIT License
1.62k stars 143 forks source link

Report rate-limits #822

Closed agateau-gg closed 8 months ago

agateau-gg commented 8 months ago

Context

This PR makes use of the new callback introduced by https://github.com/GitGuardian/py-gitguardian/pull/83 to show a message when GGShield hits a rate-limit.

What has been done

What it looks like

image

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5a6f8a5) 91.58% compared to head (a986b06) 91.61%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #822 +/- ## ========================================== + Coverage 91.58% 91.61% +0.02% ========================================== Files 167 168 +1 Lines 6896 6919 +23 ========================================== + Hits 6316 6339 +23 Misses 580 580 ``` | [Flag](https://app.codecov.io/gh/GitGuardian/ggshield/pull/822/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/GitGuardian/ggshield/pull/822/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian) | `91.61% <100.00%> (+0.02%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.