Skip to content

Commit e3b98ce

Browse files
committed
DBACLD-148300 Enable detect secret
1 parent 37e9900 commit e3b98ce

File tree

5 files changed

+1387
-2158
lines changed

5 files changed

+1387
-2158
lines changed

.pre-commit-config.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This is an example configuration to enable detect-secrets in the pre-commit hook.
2+
# Add this file to the root folder of your repository.
3+
#
4+
# Read pre-commit hook framework https://pre-commit.com/ for more details about the structure of config yaml file and how git pre-commit would invoke each hook.
5+
#
6+
# This line indicates we will use the hook from ibm/detect-secrets to run scan during committing phase.
7+
repos:
8+
- repo: https://github.com/ibm/detect-secrets
9+
# If you desire to use a specific version of detect-secrets, you can replace `master` with other git revisions such as branch, tag or commit sha.
10+
# You are encouraged to use static refs such as tags, instead of branch name
11+
#
12+
# Running "pre-commit autoupdate" automatically updates rev to latest tag
13+
rev: 0.13.1+ibm.61.dss
14+
hooks:
15+
- id: detect-secrets # pragma: whitelist secret
16+
# Add options for detect-secrets-hook binary. You can run `detect-secrets-hook --help` to list out all possible options.
17+
# You may also run `pre-commit run detect-secrets` to preview the scan result.
18+
# when "--baseline" without "--use-all-plugins", pre-commit scan with just plugins in baseline file
19+
# when "--baseline" with "--use-all-plugins", pre-commit scan with all available plugins
20+
# add "--fail-on-unaudited" to fail pre-commit for unaudited potential secrets
21+
args: [--baseline, .secrets.baseline, --use-all-plugins]

0 commit comments

Comments
 (0)