Open Architrixs opened 2 weeks ago
@Architrixs Assuming you are running on Linux, you can ignore the exit code by adding || true
to the command, like this:
git diff --staged --name-only -z | xargs -0 detect-secrets-hook --baseline .secrets.baseline || true
Sorry, I missed that you are using pre-commit. I don't know how to do it in that framework.
so, could this be a potential feature?
Sorry, I missed that you are using pre-commit. I don't know how to do it in that framework.
Could this help?
Could this help?
Thanks, I'll check it out.
I'm submitting a ...
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior? I am using this with pre-commit, Is there a way i could configure this to Pass, with an exit code 0, with warnings about the detected secrets. I just need it to warn, may be print report, but still let it pass the hook.
Please tell us about your environment:
Other information