Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env sh
# >>> GitGuardian secret scan (managed by Contentstack Security) >>>
if [ -z "${CI:-}" ]; then
if ! command -v ggshield >/dev/null 2>&1; then
echo "ggshield is not installed - secret scanning is required. Setup: https://contentstack.atlassian.net/wiki/x/FIDVEwE" >&2
exit 1
fi
ggshield secret scan pre-commit || exit 1
fi
# <<< GitGuardian secret scan <<<

# Pre-commit hook to run Talisman and Snyk scans, completing both before deciding to commit

# Function to check if a command exists
Expand Down
10 changes: 10 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env sh
# >>> GitGuardian secret scan (managed by Contentstack Security) >>>
if [ -z "${CI:-}" ]; then
if ! command -v ggshield >/dev/null 2>&1; then
echo "ggshield is not installed - secret scanning is required. Setup: https://contentstack.atlassian.net/wiki/x/FIDVEwE" >&2
exit 1
fi
ggshield secret scan pre-push "$@" || exit 1
fi
# <<< GitGuardian secret scan <<<


echo "🚀 Running pre-push checks..."

Expand Down
Loading