Adds gitguardian ggshield pre-commit hook (#912)
* Adds gitguardian ggshield pre-commit step * Intended to be run locally and not in CI * Updates gitguardian config to version 2
This commit is contained in:
+7
-1
@@ -26,7 +26,13 @@ check_dependencies_available() {
|
||||
done
|
||||
}
|
||||
|
||||
check_dependencies_available pre-commit hadolint helm shellcheck
|
||||
additional_dependencies=""
|
||||
if [ -z "${CI}" ]; then
|
||||
additional_dependencies=" ggshield"
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
check_dependencies_available pre-commit hadolint helm shellcheck circleci${additional_dependencies}
|
||||
|
||||
echo "All systems functional, running additional pre-commit checks..."
|
||||
pre-commit run --all-files
|
||||
|
||||
Reference in New Issue
Block a user