-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gosec.json
More file actions
62 lines (62 loc) · 1.1 KB
/
.gosec.json
File metadata and controls
62 lines (62 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"_comment": "NOTE: gosec v2.22.5 hardcodes CWE taxonomy v4.4 (2021-03-15). Latest is v4.17 (2025-04-03). No config option to update.",
"global": {
"nosec": "enabled",
"audit": "enabled"
},
"rules": {
"G101": {
"pattern": "(?i)passwd|pass|password|pwd|secret|private|token|key",
"entropy_threshold": 80.0,
"per_char_threshold": 3.0,
"truncate": 32
},
"G104": {
"ignore_nosec": false
},
"G115": {
"ignore_nosec": false
},
"G201": {
"ignore_nosec": false
},
"G202": {
"ignore_nosec": false
},
"G204": {
"ignore_nosec": false
},
"G301": {
"ignore_nosec": false
},
"G302": {
"ignore_nosec": false
},
"G306": {
"ignore_nosec": false
},
"G401": {
"ignore_nosec": false
},
"G402": {
"ignore_nosec": false
},
"G404": {
"ignore_nosec": false
}
},
"exclude": {
"G101": [
"*_test.go"
],
"G104": [
"*_test.go"
]
},
"exclude-dirs": [
"vendor",
"testdata",
".git",
"node_modules"
]
}