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

Add JSON schemas for ggshield JSON outputs, test JSON outputs match them #804

Closed agateau-gg closed 9 months ago

agateau-gg commented 9 months ago

This PR adds JSON schemas for ggshield stable JSON outputs. It also modifies tests to use these schema to check ggshield JSON outputs actually match the schemas.

The schemas included cover the secret scan, api-status and quota commands.

codecov-commenter commented 9 months ago

Codecov Report

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

Comparison is base (2e72fa5) 92.01% compared to head (aea924a) 91.93%. Report is 7 commits behind head on main.

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #804 +/- ## ========================================== - Coverage 92.01% 91.93% -0.08% ========================================== Files 157 158 +1 Lines 6586 6621 +35 ========================================== + Hits 6060 6087 +27 - Misses 526 534 +8 ``` | [Flag](https://app.codecov.io/gh/GitGuardian/ggshield/pull/804/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/804/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GitGuardian) | `91.93% <ø> (-0.08%)` | :arrow_down: | 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.