Skip to content

Commit 1ad022f

Browse files
committed
Remove false matches on just whitespace "passwords"
1 parent 6700783 commit 1ad022f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vendors/patterns.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ patterns:
563563
description: OpenStack password or API key
564564
regex:
565565
pattern: |
566-
[^'",\r\n\x00-\x08]+
566+
[^'",\r\n \t\x00-\x08]+
567567
start: |
568568
(?i)OPEN_?STACK_(PASSWORD|API_?KEY)[_A-Z]*['"`]?(\s*[\]\)])?\s*([:,=]|[=-]>|to|[!=]={1,2}|<>)?\s*([[{])?['"`]?
569569
end: |
@@ -572,7 +572,7 @@ patterns:
572572
- ^(ENV|[a-z_]+)\[$
573573
- ^<%=.*%>$
574574
- ^([a-z_]+\.api_?key|self\.[a-z_]+|os\.environ\.get\()$
575-
- ^(\$\{?[A-Z]+\}?|<password>)$
575+
- ^(\$\{?[A-Z]+\}?|<password>|\s+)$
576576
- ^(@?[a-z_]+\[:.*\]|@[a-z_]+)$
577577
test:
578578
data: |

0 commit comments

Comments
 (0)