Skip to content

Commit 55c83a7

Browse files
authored
containers: Do not check scopes if not init (#9736)
1 parent 406fba5 commit 55c83a7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/slimy-clocks-matter.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
containers: Do not check scopes if not defined

packages/wrangler/src/cloudchamber/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export async function fillOpenAPIConfiguration(
201201
const accountId = await requireAuth(config);
202202
const auth = requireApiToken();
203203
const scopes = getScopes();
204-
if (!scopes?.includes(scope)) {
204+
if (scopes !== undefined && !scopes.includes(scope)) {
205205
logger.error(`You don't have '${scope}' in your list of scopes`);
206206
printScopes(scopes ?? []);
207207
throw new UserError(

0 commit comments

Comments
 (0)