Github App Integration
Connect the GitHub App to Sprinto to automatically monitor repositories, access controls, and security checks for continuous compliance.
The GitHub App integration enables Sprinto to continuously monitor your GitHub organisation for repository activity, access controls, and security configurations.
Sprinto uses this integration to automate compliance checks such as:
Multi-factor authentication (MFA) enforcement
Repository access reviews
Branch protection and peer review enforcement
Dependabot vulnerability monitoring
The integration supports two connection methods:
Sprinto GitHub App (recommended) — Quick setup using Sprinto’s pre-configured app
Bring Your Own GitHub App — Custom setup for enterprise or restricted environments
How it Works
The integration uses GitHub Apps with read-only permissions to securely fetch compliance data.
You initiate the connection from Sprinto.
You choose a connection method.
GitHub permissions are granted at the organisation level.
Sprinto generates installation access tokens.
Data is retrieved using GitHub REST and GraphQL APIs.
Controls and checks are continuously evaluated.
Note
The integration relies on read-only GitHub App permissions aligned with Sprinto’s production configuration to ensure secure and non-intrusive access.
Sprinto checks for GitHub
The below procedure below has a dedicated section for configuring GitHub as a change management and ticketing system. You can follow the section that applies to your GitHub Usage:
GitHub org level MFA should be enforced
Multi-factor authentication (MFA) should be enforced at the organization level.
GitHub user should have MFA enabled
Multi-factor authentication (MFA) should be enabled on all users' accounts
Github access should be removed for offboarded user
Revoke access from the organization’s GitHub account for every offboarded staff member.
Dependabot vulnerability scan should be enabled
Enable the Dependabot vulnerability scan on your GitHub repositories.
Peer review should be enforced for code changes
Peer review should be enforced on every change merging request on the main branch.
Merging of code changes should require passing status-checks
Every code change must pass the status check.
Branch Protection rules should be enforced for admins
The branch protection ruleset should be configured on the GitHub account.
Code changes should be reviewed by peers before merging
Every code change should be reviewed by a peer reviewer.
Supported GitHub Environments
Sprinto supports integration with:
GitHub Cloud (github.com)
GitHub Enterprise Cloud (*.ghe.com)
GitHub Enterprise Server (self-hosted)
Use Bring Your Own GitHub App for enterprise or data residency requirements.
Required Permissions
To align with Sprinto's production GitHub App configuration, grant the following read-only permissions.
Repository permissions
Metadata
Read-only
Lists repositories, their visibility and default branch. GitHub grants this to every GitHub App automatically.
Administration
Read-only
Reads branch protection rules, rulesets and required status checks, to verify that branches are protected and that admins can't bypass the rules. GitHub uses the name "Administration" for these settings endpoints. Read-only access cannot change any setting.
Checks
Read-only
Reads whether CI checks and status checks passed on a pull request, to verify that code can't be merged without passing checks.
Pull requests
Read-only
Reads pull request details (author, state, reviewers, approvals, merge information), to verify that changes are peer-reviewed before merging.
Dependabot alerts
Read-only
Reads the vulnerabilities Dependabot has flagged (package, severity, open or fixed), for vulnerability management.
Organisation permissions
Members
Read-only
Lists organisation members, outside collaborators and their roles, for access reviews and offboarding checks.
Administration
Read-only
Reads organisation-level security settings, such as whether MFA is enforced for the organisation.
These permissions let Sprinto monitor repository activity, configuration and security posture without making any changes.
Does Sprinto have access to my source code? No. Sprinto does not request GitHub's Contents permission. That is the permission GitHub requires for reading file contents, browsing the file tree, downloading repository archives, or viewing the code changes (diffs) in a commit or pull request. Without it, GitHub rejects those requests.
Sprinto reads metadata about your repositories, pull requests and dependencies, not your code.
What Data Sprinto Accesses
Sprinto retrieves the following data:
Installation ID
Organisation details
Repositories and branches (names, visibility, default branch)
Branch protection rules, rulesets and required status checks
Pull requests and their metadata: title, author, state, reviewers, approvals, merge information and check results
Commit identifiers and parent links, used to trace a change back to its pull request
Organisation members, outside collaborators and repository collaborators, with their roles
MFA status and SSO/SAML identity information
Dependabot vulnerability alerts: package name, severity, state and the path of the manifest file that declares the dependency (for example
package-lock.json)
What Sprinto does not access
Source code, file contents or the file tree
Repository archives (zip or tar downloads)
Code diffs or the list of files changed in a commit or pull request
Secrets, environment variables or repository settings other than those listed above
APIs Used by Sprinto
Sprinto uses GitHub's REST and GraphQL APIs. Every call is read-only, and Sprinto uses short-lived installation access tokens.
REST API endpoints
GET /app
Validate app credentials
GET /app/installations/{installationId}
Retrieve installation details
POST /app/installations/{installationId}/access_tokens
Generate access tokens
GET /orgs/{org}
Fetch organisation details
GET /orgs/{org}/members
List organisation members
GET /orgs/{org}/outside_collaborators
List external collaborators
GET /orgs/{org}/repos
List repositories
GET /users/{username}
Fetch user details
GET /repos/{owner}/{repo}/pulls
Retrieve pull requests
GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews
Retrieve reviewers and approvals
GET /repos/{owner}/{repo}/branches
List branches
GET /repos/{owner}/{repo}/branches/{branch}/protection
Read branch protection rules
GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks
Read required status checks
GET /repos/{owner}/{repo}/rules/branches/{branch} and GET /repos/{owner}/{repo}/rulesets/{ruleset_id}
Read rulesets that apply to a branch
GET /repos/{owner}/{repo}/collaborators
List who has access to each repository
GET /repos/{owner}/{repo}/vulnerability-alerts
Check whether Dependabot alerts are enabled
GraphQL API
Sprinto also uses GitHub's GraphQL API (https://api.github.com/graphql) to:
Query organisation members with roles
Retrieve SSO/SAML identity information
Fetch commit identifiers and pull request metadata
Retrieve Dependabot vulnerability alerts
Important Considerations
Before you begin
Ensure the following prerequisites are met:
You have Admin access to the GitHub organisation where the app will be installed.
You are logged in to the Sprinto Admin Portal.
Your GitHub organisation allows third-party GitHub Apps to be installed.
How it works
The integration works in three stages:
You initiate the connection from Sprinto.
You install the Sprinto Audit GitHub App in your GitHub organisation.
Sprinto syncs repository and organisation-level data to automate compliance checks.
The connection type used is OAuth.
Dashboard Actions
Connect GitHub App
Log in to the Sprinto dashboard.
Navigate to Settings → Integrations.
In the All tab, search for GitHub App.
Click Connect.

Review:
Controls automated
Checks covered
Permissions required
Data accessed by Sprinto
Click Next.

Choose Authentication Method
Option 1: Use Sprinto’s GitHub App (Recommended)
Use Sprinto’s pre-configured GitHub App for a quick setup.
Select Use Sprinto’s GitHub App.
Click Connect with Sprinto.

You will be redirected to GitHub.
Sign in and authorise the Sprinto Audit app.

Select:
Organisation
Repository access (All or Selected)
Click Install.

After installation:
You are redirected back to Sprinto
Initial sync begins automatically
Integration status updates to Active
Option 2: Bring Your Own GitHub App
Use this method for GitHub Enterprise or custom configurations.
Step 1: Create a GitHub App
Select Bring Your Own GitHub App.
Click Continue.

In your Github account, go to Settings → Developer settings → GitHub Apps.
Click New GitHub App.

Enter:
App name: sprinto-audit-app
Homepage URL: Use your Sprinto region:
India: http://in.sprinto.com/
Callback URL: Use your Sprinto region:
India: http://in.sprinto.com/githubapp/githubAppCallback
EU: http://eu.sprinto.com/githubapp/githubAppCallback
US: http://app.sprinto.com/githubapp/githubAppCallback
AU: https://au.sprinto.com/githubapp/githubAppCallback
Setup URL (Post Installation):
India: http://in.sprinto.com/githubapp/githubAppCallback
EU: http://eu.sprinto.com/githubapp/githubAppCallback
US: http://app.sprinto.com/githubapp/githubAppCallback
AU: https://au.sprinto.com/githubapp/githubAppCallback

Configure the required permissions.
Click Create GitHub App.

After creation:
Note the App ID
Copy the Public Link

Scroll down to the Private Keys section.
Click Generate a private key.

Configure IP Allowlist (Required)
After creating your GitHub App, you must allow Sprinto’s public IP addresses if your organisation enforces IP restrictions.
Add the following IP addresses to your allowlist based on your Sprinto region:
US
app.sprinto.com
54.193.221.51
India
in.sprinto.com
3.108.123.60
EU
eu.sprinto.com
18.184.125.204
AU
au.sprinto.com
54.252.98.100
Step 2: Add Credentials in Sprinto
Enter:
App Public Link
App ID
Private Key
Click Test Connection.
Once validated, click Connect.

You will be redirected to GitHub, select the user to authorise your GitHub app.
Click Continue.

Click Install to install your app.

Sprinto will establish the connection and begin syncing data.
Complete integration
After installation:
You will be redirected back to Sprinto.
Sprinto will initiate the initial sync.
The GitHub App status will update to Active once connected.
The integration is now complete.

Troubleshooting
Unable to install the app
Ensure you have organisation admin access in GitHub.
Check whether your organisation restricts third-party app installations.
Integration shows inactive
Confirm the app is installed in the correct organisation.
Verify repository access selection.
Try reconnecting from Settings → Integrations.
Missing repositories in Sprinto
If “Only select repositories” was chosen, ensure the required repositories were selected.
Reinstall the app and modify repository access if needed.
Support
Contact Sprinto support if you have any queries regarding the integration or need any assistance.
Last updated

