Files
pre-commit/hooks/ggshield-not-ci.sh
T
Iain Sproat e4bde6ce7c
Release pipeline / Precommit check (push) Has been cancelled
fix(pre-commit): remove deprecated stage name & port to GitHub Actions (#5)
2026-04-03 10:31:16 +01:00

9 lines
206 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
if [[ -z "${CI}" ]]; then
ggshield secret scan pre-commit
else
echo "Detected that this script is running in a CI environment, so skipping GitGuardian ggshield"
fi