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:
Iain Sproat
2022-10-25 13:41:00 +01:00
committed by GitHub
parent ce2624760c
commit 8255015696
5 changed files with 25 additions and 4 deletions
+7 -1
View File
@@ -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