Closed Renizmy closed 3 months ago
Hi @Renizmy, thanks for this contribution!
This is an interesting idea, I am forwarding it to our product-owners.
Hi again!
We like your idea, but using an environment variable makes it difficult to set a multi-line message. We think it would be better to store this message in the configuration file. It could be added as secret.prereceive-remediation-message
. One can then define the message in the global configuration file (~/.gitguardian.yaml
) like this:
version: 2
secret:
prereceive-remediation-message: |
A multiline
remediation
message
To do so you would need to add a prereceive_remediation_message
field to the SecretConfig
class, and then use it from the current code as config.user_config.secret.prereceive_remediation_message
.
Do you feel like doing this?
Indeed, the multi-line in an environnement variable is not a good idea .. Thank you for this information, here is the change
Hi, What do you think about it ?
Hello,
The main idea is to be able to customize the remediation message For example to set custom links to internal documentation . Maybe it could be better to set in the yaml configuration file, what do you think ?