Loading
protect pre-commit cache and configure garbage collection
On some repos with a lot of pre-commit hooks, especially when using nodejs, the pre-commit job can end up taking 5+ minutes.
This change should ensure the cache is cleared from time to time.
Also, protect the pre-commit cache so that we don't risk exposing secrets to malicious/forged hooks.
Edited by Jonathan GAYVALLET