-
Notifications
You must be signed in to change notification settings - Fork 32
Adding xGitGuard pre commit hook #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…t a factor of a hundred.
… fast loads, improving results by adding distance heuristic, cleaning up code
Parris, Stephen seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
# logger.debug("Dictionary_words file Read") | ||
if not self.dictionary_words.empty: | ||
try: | ||
with open('/Users/sparri919/Documents/GitHub/xGitGuard/xgitguard/config/vectorizer.pkl', 'rb') as file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
path should be relative
cd dist/xgitguard_precommit_cred_detections | ||
zip -r ../../xgitguard-precommit-hook.zip xgitguard_precommit_cred_detections | ||
zip -r ../../xgitguard-precommit-hook.zip _internal | ||
chmod 777 ../../xgitguard-precommit-hook.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use chmod 644 unless you have a specific reason for broader access. This is much safer for most cases.
@@ -0,0 +1,4 @@ | |||
git config --global ~/gitconfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
update README to setup pre-commit hook in the system
This allows the functionality exposed in xGitGuard to be used in the form a pre-commit hook instead of as a scan of github.