PostHog / PostHog/posthog

Self Driving setup wizards fails connecting to Github

Open
#85,659 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Bug Description

How to reproduce

  1. Run the self-driving setup wizard in the repo of your choice
  2. Wait until it prompts you to login and connect Github
  3. Experience the error code:
    {"type":"authentication_error","code":"permission_denied","detail":"You don't have access to the project.","attr":null}

Additional context

I want to set it up for repos in an organisation that I manage, and for repos within there
This is the link I am shown: https://eu.posthog.com/api/environments/252571/integrations/authorize?kind=github

Image
Debug info
- [252571 ] PostHog Cloud, region and project ID: [please provide, you can find both at https://app.posthog.com/settings/project-details#variables]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the self-driving setup wizard through the login and GitHub connection step, then inspect the authorization flow at the provided PostHog integration URL. Trace the permission_denied response for the organization repository case; done means the wizard connects successfully to repositories in a managed organization.

Written by the indexing model from the issue text.

Assessment

Tech stack
github
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.