Skip to content

Commit d5cd85f

Browse files
committed
fix(ci):
1 parent 695eac4 commit d5cd85f

3 files changed

Lines changed: 213 additions & 5 deletions

File tree

agentic_security/core/security.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ def sanitize_log_output(data: str | dict) -> str:
166166
data = str(data)
167167

168168
patterns = [
169-
(r'(api[_-]?key["\s:=]+)["\']?[\w-]+', r"\1***"),
170-
(r'(token["\s:=]+)["\']?[\w-]+', r"\1***"),
171-
(r'(password["\s:=]+)["\']?[\w-]+', r"\1***"),
172-
(r'(secret["\s:=]+)["\']?[\w-]+', r"\1***"),
169+
(r'(api[_-]?key["\'\s:=]+)["\']?[\w-]+', r"\1***"),
170+
(r'(token["\'\s:=]+)["\']?[\w-]+', r"\1***"),
171+
(r'(password["\'\s:=]+)["\']?[\w-]+', r"\1***"),
172+
(r'(secret["\'\s:=]+)["\']?[\w-]+', r"\1***"),
173173
(r"Bearer\s+[\w-]+", "Bearer ***"),
174174
]
175175

0 commit comments

Comments
 (0)