Skip to content

Commit 1dc6000

Browse files
ai-edge-botcopybara-github
authored andcommitted
switch over from OAuth login to ADC login
PiperOrigin-RevId: 926348012
1 parent 5c5580a commit 1dc6000

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • litert_cli/commands/benchmark

litert_cli/commands/benchmark/gcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ def run_gcp(
199199
click.echo("Fetching GCP access token...")
200200
try:
201201
token = subprocess.check_output(
202-
["gcloud", "auth", "print-access-token"], text=True
202+
["gcloud", "auth", "application-default", "print-access-token"],
203+
text=True,
203204
).strip()
204205
except subprocess.CalledProcessError as e:
205206
click.secho(

0 commit comments

Comments
 (0)