From a7af1762244df64caae2fbdc75cfb48138cc0f4f Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Feb 23 2022 13:33:44 +0000 Subject: ftbfs_weekly_reminder: Don't use password or it would be eaten Fixes https://pagure.io/releng/issue/10642 Related to https://pagure.io/fedora-infrastructure/issue/10525 Signed-off-by: Miro Hrončok --- diff --git a/scripts/ftbfs_weekly_reminder.py b/scripts/ftbfs_weekly_reminder.py index 89a31c2..34bab21 100755 --- a/scripts/ftbfs_weekly_reminder.py +++ b/scripts/ftbfs_weekly_reminder.py @@ -36,8 +36,7 @@ config = configparser.ConfigParser() config.read(config_path) URL = config['bugzilla'].get('url', 'https://bugzilla.redhat.com') -USERNAME = config['bugzilla']['username'] -PASSWORD = config['bugzilla']['password'] +API_KEY = config['bugzilla'].get('api_key', None) FEDORA = config['bugzilla'].get('fedora', fedora).upper().replace('F', '') TRACKING = config['bugzilla'].get('tracking', tracking) @@ -68,7 +67,7 @@ cache_dir = pathlib.Path('~/.cache/FTBFS_weekly_reminder/').expanduser() cache_dir.mkdir(exist_ok=True) ALREADY_FILED = cache_dir / 'ALREADY_FILED' -bzapi = bugzilla.Bugzilla(URL, user=USERNAME, password=PASSWORD) +bzapi = bugzilla.Bugzilla(URL, api_key=API_KEY) failed = [] updated = []