You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# WARNING: Please, DO NOT edit this file! It is maintained in the Repository Template (https://github.com/nhs-england-tools/repository-template). Raise a PR instead.
4
+
5
+
set -euo pipefail
6
+
7
+
# Pre-commit git hook to scan for secrets hard-coded in the codebase. This is a
8
+
# gitleaks command wrapper. It will run gitleaks natively if it is installed,
9
+
# otherwise it will run it in a Docker container.
10
+
#
11
+
# Usage:
12
+
# $ [options] ./scan-secrets.sh
13
+
#
14
+
# Options:
15
+
# check={whole-history,last-commit,staged-changes} # Type of the check to run, default is 'staged-changes'
16
+
# FORCE_USE_DOCKER=true # If set to true the command is run in a Docker container, default is 'false'
17
+
# VERBOSE=true # Show all the executed commands, default is 'false'
0 commit comments