Skip to content

Commit 9888231

Browse files
committed
Do not leak github credentials on failed rotation
1 parent 32f0da0 commit 9888231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cfg_mgmt/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def rotate_cfg_element(
187187
else:
188188
logger.info(
189189
'No secondary oAuth token provided for credential with username '
190-
f"'{credential.username}' of github-config '{cfg_to_rotate.name()}' "
190+
f"'{credential.username()}' of github-config '{cfg_to_rotate.name()}' "
191191
'- will not attempt rotation.'
192192
)
193193
except requests.exceptions.HTTPError as http_error:

0 commit comments

Comments
 (0)