feat(github): unify workspace GitHub access (#2084)

This commit is contained in:
Carlos Florêncio
2026-07-31 19:20:49 +01:00
committed by GitHub
parent 1c267cf527
commit aeb7c62e49
27 changed files with 1573 additions and 419 deletions
@@ -68,6 +68,12 @@ test.describe("GitHub workspace authentication", () => {
timeout: 15_000,
});
await expect(automation.getByText("GitHub CLI", { exact: true })).toBeVisible();
await expect(testPage.getByText("My GitHub identity", { exact: true })).toHaveCount(0);
await expect(
automation.getByText("This account also powers My GitHub and user-triggered actions.", {
exact: true,
}),
).toBeVisible();
const accountsResponse = await apiClient.rawRequest(
"GET",
`/api/v1/github/auth/gh-cli/accounts?workspace_id=${encodeURIComponent(workspaceB.id)}`,
@@ -96,10 +102,6 @@ test.describe("GitHub workspace authentication", () => {
await expect(
workspaceBDialog.getByRole("combobox", { name: "GitHub CLI account" }),
).toContainText("bob-cli");
await expect(testPage.getByText("My GitHub identity", { exact: true })).toBeVisible();
await expect(
testPage.getByText(/same human account selected for workspace access/),
).toBeVisible();
await testPage.screenshot({
path: testInfo.outputPath("github-workspace-isolation-desktop.png"),