Skip to content

Commit 8aa819b

Browse files
committed
Fix scopes when specifiying reading all runs
1 parent 88bc6ff commit 8aa819b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/trigger-sdk/src/v3/auth.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ function flattenScopes(permissions: PublicTokenPermissions): string[] {
150150
}
151151
} else if (typeof value === "string") {
152152
flattenedPermissions.push(`${action}:${property}:${value}`);
153+
} else if (typeof value === "boolean" && value) {
154+
flattenedPermissions.push(`${action}:${property}`);
153155
}
154156
}
155157
}

0 commit comments

Comments
 (0)