Closed fnareoh closed 2 months ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 91.13%. Comparing base (
ae78adc
) to head (835e596
). Report is 3 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Context
This MR adds the display of custom remediation messages defined in the gitguardian plateform.
What has been done
This MR relies on the changes on pygitguardian https://github.com/GitGuardian/py-gitguardian/pull/111
And for a custom remediation message to be display in ggshield the instance has to expose the messages through the metadata endpoint (see internal MR).
Validation
This version of ggshield should be compatible with versions of the app that do not yet expose the remediation messages (current staging for example) with the metadata endpoint and a version that does (review app of the MR that exposes to the public api).
Set the right instance for example using the env variable
GITGUARDIAN_INSTANCE
andGITGUARDIAN_API_KEY
the try theggshield secret scan pre-commit
after leaking a secret andggshield secret scan pre-push
after commiting a secret but I am not sure how to test the pre-receive :(PR check list
skip-changelog
label has been added to the PR.