diff --git a/.github/.git-hooks/detect-api-keys.py b/.github/.git-hooks/detect-api-keys.py new file mode 100755 index 00000000..8d4092a9 --- /dev/null +++ b/.github/.git-hooks/detect-api-keys.py @@ -0,0 +1,73 @@ +#!/usr/bin/env python +from __future__ import print_function + +import argparse +import re +import sys + + +def detect_aws_access_key(line): + match = re.search(r"(?