Moves logic for hook to bash script

This commit is contained in:
Iain Sproat
2022-08-25 12:11:01 +01:00
parent ca31fb9195
commit 1d417e69c7
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -1,6 +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
entry: hooks/ggshield-not-ci.sh
language: script
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -eo pipefail
if [[ ! -z "${CI}"} ]]; then
ggshield secret scan pre-commit
fi