Skip to content

Commit 5f543f1

Browse files
committed
censor app private key from debug output
1 parent 012e3b1 commit 5f543f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gh_org_mgr/_gh_org.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def censor_half_string(string: str) -> str:
115115
half2 = len(string) - half1
116116
return string[:half1] + "*" * (half2)
117117

118-
sensible_keys = ["gh_token"]
118+
sensible_keys = ["gh_token", "gh_app_private_key"]
119119
for key in sensible_keys:
120120
if value := dictionary.get(key, ""):
121121
dictionary[key] = censor_half_string(value)

0 commit comments

Comments
 (0)