Adds a pre-commit hook for ggshield not in a CI environment

This commit is contained in:
Iain Sproat
2022-08-25 10:22:44 +01:00
parent 58832abecc
commit ca31fb9195
+6
View File
@@ -0,0 +1,6 @@
- id: ggshield-not-ci
name: GitGuardian Shield (pre-commit)
entry: bash -c 'if [[ ! -z ${CI}} ]]; then ggshield secret scan pre-commit; fi'
description: Runs ggshield in non-CI environments to detect hardcoded secrets, security vulnerabilities and policy breaks.
stages: [commit]
language: system