Skip to content

Commit ca31fb9

Browse files
committed
Adds a pre-commit hook for ggshield not in a CI environment
1 parent 58832ab commit ca31fb9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- id: ggshield-not-ci
2+
name: GitGuardian Shield (pre-commit)
3+
entry: bash -c 'if [[ ! -z ${CI}} ]]; then ggshield secret scan pre-commit; fi'
4+
description: Runs ggshield in non-CI environments to detect hardcoded secrets, security vulnerabilities and policy breaks.
5+
stages: [commit]
6+
language: system

0 commit comments

Comments
 (0)