How to integrate GitHub with account wide access?
Data Access by Hivel
- Hivel accesses the past 60-90 days of commits and pull requests from active repositories during the initial sync. 
Authorization Mechanism
- Hivel employs GitHub's OAuth for authentication. 
- Users maintain full control and can withdraw access anytime via GitHub's authorized apps section. 
Requirements
- Ensure to log in with an account possessing write permissions to relevant GitHub repositories. 
- Write permissions are mandatory for webhook publication, facilitating real-time data sync. 
Best Practice
- Opt for a service account rather than an individual-linked account. 
- Service accounts are typically overseen by the company's admin. 
Permissions Required

You can either create a service account or use one with access to only the required workspaces.
How to create a service account and give access to the required workspaces
- Sign up on github.com using a generic email ID which does not belong to any developer and can be accessed by the admin. 
- Once created, open the required workspace using an admin account. 
- Under People section, click on Invite member to invite the newly created service account. 
- Do the same for all the required workspaces. 
- Once invited, log into the account mail and accept the invite. This will give the service account permission for only the required workspaces.  
Sign in to Hivel
- Navigate to the Hivel sign-up page 
- Add your work email id (If you'd like to use your personal email id please contact [email protected] 
- Now, you can use your Google or Microsoft login with your work email id; or create a password. 
- Create your Company Profile, and click 'Get Started'.  
- Once you've successfully created your Company Profile you will be redirected to the Integrations Page under Settings.  
- Select GitHub, and use your company's GitHub account (either service account or the account which has access to the required workspaces). 
- Click on Connect.   
- Click 'Integrate Github' . 
- Make sure you click on 'Grant' all the organization you want to integrate with Hivel.  
- After authorization, you'll be redirected back to Hivel. 
Once your GitHub is successfully integrated, we will start to pull data. It will take between 2 - 48 hours for the complete sync, depending on the volume of the data.
Last updated
Was this helpful?
