From 9888231c41152a9baa4905e82049d9eb59a2fc08 Mon Sep 17 00:00:00 2001 From: "Philipp Heil (zkdev)" Date: Thu, 16 Jan 2025 09:03:25 +0100 Subject: [PATCH] Do not leak github credentials on failed rotation --- cfg_mgmt/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg_mgmt/github.py b/cfg_mgmt/github.py index c66899dd9..b677e5858 100644 --- a/cfg_mgmt/github.py +++ b/cfg_mgmt/github.py @@ -187,7 +187,7 @@ def rotate_cfg_element( else: logger.info( 'No secondary oAuth token provided for credential with username ' - f"'{credential.username}' of github-config '{cfg_to_rotate.name()}' " + f"'{credential.username()}' of github-config '{cfg_to_rotate.name()}' " '- will not attempt rotation.' ) except requests.exceptions.HTTPError as http_error: