-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Rather than manually ensuring that API keys have not been committed, we could do this programmatically via pre-commit hooks. However, due to the diversity in API key format, there does not appear to be an off-the-shelf solution.
Creating new hooks is possible, but in order to make this work with the pre-commit package we would need to make a new git repo for this detect-api-key
hook (source). This could be useful to teams beyond ConvAI.
Generally speaking, it's possible to create pre-commit hooks by simply creating a shell script, but in order to integrate with pre-commit it seems like creating a repo that is an installable package or exposes an executable is necessary.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request