Use the best token instead of the constant

This commit is contained in:
Mikhail f. Shiryaev 2022-06-16 16:27:49 +02:00
parent d7505d4de7
commit 5f3de6f486
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -6,7 +6,7 @@ import os
import subprocess
from env_helper import GITHUB_WORKSPACE, TEMP_PATH
from get_robot_token import get_parameter_from_ssm
from get_robot_token import get_best_robot_token
from ssh import SSHKey
from cherry_pick_utils.backport import Backport
from cherry_pick_utils.cherrypick import CherryPick
@ -21,7 +21,7 @@ def parse_args():
def main():
args = parse_args()
token = args.token or get_parameter_from_ssm("github_robot_token_1")
token = args.token or get_best_robot_token()
bp = Backport(
token,