Skip to content

[dashboard] help github users with org restrictions #19700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions components/dashboard/src/workspaces/CreateWorkspacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ import { useAllowedWorkspaceClassesMemo } from "../data/workspaces/workspace-cla
import Menu from "../menu/Menu";
import { useOrgSettingsQuery } from "../data/organizations/org-settings-query";
import { useAllowedWorkspaceEditorsMemo } from "../data/ide-options/ide-options-query";
import { isGitpodIo } from "../utils";

type NextLoadOption = "searchParams" | "autoStart" | "allDone";

Expand Down Expand Up @@ -746,6 +747,15 @@ export const RepositoryNotFound: FC<{ error: StartWorkspaceError }> = ({ error }
/>
);
}
if (authProvider.id.toLocaleLowerCase() === "public-github" && isGitpodIo()) {
return (
<RepositoryInputError
title={`Although you appear to have the correct authorization credentials, the '${owner}' organization has enabled OAuth App access restrictions, meaning that data access to third-parties is limited. For more information on these restrictions, including how to enable this app, visit https://docs.github.com/articles/restricting-access-to-your-organization-s-data/.`}
linkText="Check Organization Permissions"
linkHref={"https://github.com/settings/connections/applications/484069277e293e6d2a2a"}
/>
);
}

return (
<RepositoryInputError
Expand Down
Loading