Skip to content

Commit c26e695

Browse files
author
Frederic Mercier
committed
DBACLD-142228: detect-secrets
1 parent 08dfa57 commit c26e695

File tree

2 files changed

+101
-0
lines changed

2 files changed

+101
-0
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/ibm/detect-secrets
3+
# If you desire to use a specific version of detect-secrets, you can replace with other git revisions such as branch, tag or commit sha.
4+
# You are encouraged to use static refs such as tags, instead of branch name
5+
#
6+
# Running "pre-commit autoupdate" automatically updates rev to latest tag
7+
rev: master
8+
hooks:
9+
- id: detect-secrets # pragma: whitelist secret
10+
# Add options for detect-secrets-hook binary. You can run `detect-secrets-hook --help` to list out all possible options.
11+
# You may also run `pre-commit run detect-secrets` to preview the scan result.
12+
# when "--baseline" without "--use-all-plugins", pre-commit scan with just plugins in baseline file
13+
# when "--baseline" with "--use-all-plugins", pre-commit scan with all available plugins
14+
# add "--fail-on-unaudited" to fail pre-commit for unaudited potential secrets
15+
args: [--baseline, .secrets.baseline]
16+

.secrets.baseline

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"exclude": {
3+
"files": "^.secrets.baseline$",
4+
"lines": null
5+
},
6+
"generated_at": "2024-07-18T07:10:46Z",
7+
"plugins_used": [
8+
{
9+
"name": "AWSKeyDetector"
10+
},
11+
{
12+
"name": "ArtifactoryDetector"
13+
},
14+
{
15+
"name": "AzureStorageKeyDetector"
16+
},
17+
{
18+
"base64_limit": 4.5,
19+
"name": "Base64HighEntropyString"
20+
},
21+
{
22+
"name": "BasicAuthDetector"
23+
},
24+
{
25+
"name": "BoxDetector"
26+
},
27+
{
28+
"name": "CloudantDetector"
29+
},
30+
{
31+
"ghe_instance": "github.ibm.com",
32+
"name": "GheDetector"
33+
},
34+
{
35+
"name": "GitHubTokenDetector"
36+
},
37+
{
38+
"hex_limit": 3,
39+
"name": "HexHighEntropyString"
40+
},
41+
{
42+
"name": "IbmCloudIamDetector"
43+
},
44+
{
45+
"name": "IbmCosHmacDetector"
46+
},
47+
{
48+
"name": "JwtTokenDetector"
49+
},
50+
{
51+
"keyword_exclude": null,
52+
"name": "KeywordDetector"
53+
},
54+
{
55+
"name": "MailchimpDetector"
56+
},
57+
{
58+
"name": "NpmDetector"
59+
},
60+
{
61+
"name": "PrivateKeyDetector"
62+
},
63+
{
64+
"name": "SlackDetector"
65+
},
66+
{
67+
"name": "SoftlayerDetector"
68+
},
69+
{
70+
"name": "SquareOAuthDetector"
71+
},
72+
{
73+
"name": "StripeDetector"
74+
},
75+
{
76+
"name": "TwilioKeyDetector"
77+
}
78+
],
79+
"results": {},
80+
"version": "0.13.1+ibm.62.dss",
81+
"word_list": {
82+
"file": null,
83+
"hash": null
84+
}
85+
}

0 commit comments

Comments
 (0)