You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/wrangler/src/user/user.ts
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -221,6 +221,7 @@ import {
221
221
readFileSync,
222
222
UserError,
223
223
}from"@cloudflare/workers-utils";
224
+
importcifrom"ci-info";
224
225
importTOMLfrom"smol-toml";
225
226
importdedentfrom"ts-dedent";
226
227
import{fetch}from"undici";
@@ -1287,9 +1288,11 @@ export async function getAccountId(
1287
1288
}catch(e){
1288
1289
// Did we try to select an account in CI or a non-interactive terminal?
1289
1290
if(einstanceofNoDefaultValueProvided){
1290
-
// Redact account names (which may contain email addresses) in non-interactive mode
1291
-
// to avoid leaking sensitive information in CI logs
1292
-
constredactAccountName=isNonInteractiveOrCI();
1291
+
// Redact account names (which may contain email addresses) in CI
1292
+
// to avoid leaking sensitive information in public CI logs.
1293
+
// Non-interactive terminals (agents, piped commands) still need
1294
+
// to see account names to identify which account to configure.
1295
+
constredactAccountName=ci.isCI;
1293
1296
thrownewUserError(
1294
1297
`More than one account available but unable to select one in non-interactive mode.
1295
1298
Please set the appropriate \`account_id\` in your ${configFileName(undefined)} file or assign it to the \`CLOUDFLARE_ACCOUNT_ID\` environment variable.
0 commit comments