From 18bf67bbf53e207c558bb66d46ad5da6d555f83f Mon Sep 17 00:00:00 2001 From: Allen Li Date: Tue, 8 Apr 2025 10:28:28 -0700 Subject: [PATCH] [newauth] Enable by default (reland) (skip bots) Originally https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6418563 Bug: 404613530 Bug: 408427309 Change-Id: I17bf758f2dd342493d42c1b2dd233696f3ebef47 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6440137 Reviewed-by: Gavin Mak Commit-Queue: Allen Li --- newauth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/newauth.py b/newauth.py index 4747024c6a..585574ce82 100644 --- a/newauth.py +++ b/newauth.py @@ -35,7 +35,9 @@ def SwitchedOn() -> bool: def Default() -> bool: "Returns default enablement status for new auth stack." - return False + if os.getenv('SWARMING_BOT_ID'): + return False + return True def _HasGitcookies() -> bool: