File tree Expand file tree Collapse file tree 4 files changed +23
-10
lines changed
sonar-text-plugin/src/main/resources/org/sonar/plugins/secrets/configuration Expand file tree Collapse file tree 4 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ provider:
27
27
patternNot :
28
28
- " ^([\\ w\\ .\\ *])\\ 1{2,}$"
29
29
- " (?i)^(db|my)?_?pass(word|wd)?$"
30
- - " ^\\ ${1,2}[A-Z_] +$"
30
+ - " ^\\ ${1,2}\\ w +$"
31
31
- " ^\\ ${1,2}[{(]"
32
32
- " ^\\ {{2,}"
33
33
- " ^<[a-z \\ -]+>$"
Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ provider:
44
44
- " ^.$"
45
45
- " ^(?i)pass(word|wd)?$"
46
46
- " ^%[sv]$"
47
- - " ^\\ ${1,2}[A-Z_]+$"
47
+ - " ^\\ *{3,}$"
48
+ - " ^\\ ${1,2}\\ w+$"
48
49
- " ^\\ {.*\\ }$"
49
50
- " ^'\\ {.*\\ }'$"
50
51
- " ^\\ ${1,2}[{(]"
@@ -99,6 +100,9 @@ provider:
99
100
port=instance_info.port,
100
101
database=db_name),
101
102
containsSecret: false
103
+ - text : |
104
+ DBG1(DBG_LIB, "connecting to mysql://%s:***@%s:%d/%s failed: %s",
105
+ containsSecret: false
102
106
103
107
- id : mysql-env-mysql_password-unquoted
104
108
rspecKey : S6697
@@ -284,7 +288,7 @@ provider:
284
288
- " ^(db|my)?_?pass(word|wd)?$"
285
289
- " ^(assword|ort)$"
286
290
- " ^\\ *{3,}$"
287
- - " ^\\ ${1,2}[A-Z_] +$"
291
+ - " ^\\ ${1,2}\\ w +$"
288
292
- " ^\\ ${1,2}[{(]"
289
293
- " ^\\ {{2,}"
290
294
examples :
@@ -326,6 +330,15 @@ provider:
326
330
- text : |
327
331
mysqladmin ping --user=mysqluser --password=$${MYSQL_USER_PASSWORD}
328
332
containsSecret: false
333
+ - text : |
334
+ command: mysql -h $db_host -P $db_port -u $db_user --password=$db_password $db_database < /opt/operator-settlement/init.sql
335
+ containsSecret: false
336
+ - text : |
337
+ mysql -h$archery_host -P$archery_port -u$archery_user -p$archery_pw $archery_db -N -e "select
338
+ containsSecret: false
339
+ - text : |
340
+ test: mysqladmin ping -h localhost -u $$MYSQL_USER --password=$$MYSQL_PASSWORD
341
+ containsSecret: false
329
342
330
343
- id : mysql-cli-quoted-outer
331
344
rspecKey : S6697
@@ -354,7 +367,7 @@ provider:
354
367
patternNot :
355
368
- " (db|my)?_?pass(word|wd)?"
356
369
- " ^\\ *{3,}$"
357
- - " ^\\ ${1,2}[A-Z_] +$"
370
+ - " ^\\ ${1,2}\\ w +$"
358
371
- " ^\\ ${1,2}[{(]"
359
372
- " ^\\ {{2,}"
360
373
examples :
@@ -414,7 +427,7 @@ provider:
414
427
patternNot :
415
428
- " (?:db|my)?_?pass(?:word|wd)?"
416
429
- " ^\\ *{3,}$"
417
- - " ^\\ ${1,2}[ \\ w] +$"
430
+ - " ^\\ ${1,2}\\ w+$"
418
431
- " ^\\ ${1,2}[{(]"
419
432
- " ^\\ {{2,}"
420
433
examples :
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ provider:
39
39
- " ^(?i)pass(word|wd)?$"
40
40
- " ^[Xx]{3,}$"
41
41
- " ^%[sv]$"
42
- - " ^\\ ${1,2}[A-Z_] +$"
42
+ - " ^\\ ${1,2}\\ w +$"
43
43
- " ^\\ ${1,2}[{(]"
44
44
examples :
45
45
- text : |
@@ -119,7 +119,7 @@ provider:
119
119
- " ^(?i)pass(word|wd)?$"
120
120
- " ^[Xx]{3,}$"
121
121
- " ^%[sv]$"
122
- - " ^\\ ${1,2}[A-Z_] +$"
122
+ - " ^\\ ${1,2}\\ w +$"
123
123
- " ^\\ ${1,2}[{(]"
124
124
examples :
125
125
- text : |
@@ -198,7 +198,7 @@ provider:
198
198
- " ^\\ [[\\ w\\ t \\ -]+\\ ]$"
199
199
- " ^<[\\ w\\ t -]{1,10}>?"
200
200
- " ^\\ ${1,2}[{(]"
201
- - " ^\\ ${1,2}[A-Z_] +$"
201
+ - " ^\\ ${1,2}\\ w +$"
202
202
- " \\ $\\ {\\ w+(:-\\ w+)?\\ }"
203
203
- " ^\\ {+[^}]*\\ }+$"
204
204
- " ^`[a-z]+"
@@ -310,7 +310,7 @@ provider:
310
310
- " ^\\ [[\\ w\\ t \\ -]+\\ ]$"
311
311
- " ^<[\\ w\\ t -]{1,10}>?"
312
312
- " ^\\ ${1,2}[{(]"
313
- - " ^\\ ${1,2}[A-Z_] +$"
313
+ - " ^\\ ${1,2}\\ w +$"
314
314
- " \\ $\\ {\\ w+(:-\\ w+)?\\ }"
315
315
- " ^\\ {+[^}]*\\ }+$"
316
316
- " ^`[a-z]+"
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ provider:
23
23
- " ^<[\\ w\\ t -]{1,10}>?"
24
24
- " ^%[sv]$"
25
25
- " ^\\ ${1,2}[{(]"
26
- - " ^\\ ${1,2}[A-Z_] +$"
26
+ - " ^\\ ${1,2}\\ w +$"
27
27
- " \\ $\\ {\\ w+(:-\\ w+)?\\ }"
28
28
- " ^\\ {+[^}]*\\ }+$"
29
29
- " ^\\ *{3,}$"
You can’t perform that action at this time.
0 commit comments