GitHub App
What it does in Varman
Section titled “What it does in Varman”The GitHub App integration runs the same five checks as the GitHub integration: Branch Protection Enabled, Code Scanning, Dependabot Security Updates Enabled, Sanitized Inputs and 2FA Enforcement. They map to the same evidence tasks (Code Changes, Sanitized Inputs, Secure Code and 2FA). See the GitHub check table for what each one passes on.
The difference is how Varman gets access. A personal access token with the repo scope can write to
private repositories. A GitHub App gets read-only permissions, and you choose which repositories it
can see when you install it.
What you need
Section titled “What you need”- Permission to install GitHub Apps on your GitHub organization (an organization owner, or a member the owners allow to install apps).
- For the 2FA Enforcement check, the person who connects must be an owner of the organization. GitHub only lets organization owners filter members by 2FA status.
- Private repositories need GitHub Code Security for CodeQL, or a third-party tool that uploads SARIF.
Permissions requested
Section titled “Permissions requested”The app asks for no OAuth scopes. Its access comes from the read-only permissions set on the GitHub App:
- Repository: Metadata, Contents, Pull requests, Administration, Dependabot alerts (all read-only)
- Organization: Members (read-only)
Varman calls https://api.github.com with the user token from the app authorization.
Connect
Section titled “Connect”-
In Varman, open Integrations, find GitHub App and click Connect.
-
GitHub asks you to authorize the app. Approve it.
-
If the app is not yet installed on your account or organization, GitHub sends you to install it. Pick the organization and choose All repositories or Only select repositories. See Installing a GitHub App.
-
GitHub returns you to Varman and the Account Settings panel opens. Under Repositories to monitor, pick the repositories to check, then click Save configuration.
Until repositories are selected, every check is skipped with Needs setup: select Repositories to monitor, exactly as described on the GitHub page.
For platform admins: register the GitHub App
Section titled “For platform admins: register the GitHub App”Only needed once per Varman deployment, and only if the card shows Coming Soon. A GitHub organization owner creates the app.
-
In GitHub, go to Settings > Developer settings > GitHub Apps > New GitHub App. See Registering a GitHub App.
-
Set Callback URL to
<your API URL>/v1/integrations/oauth/callback. The exact URL is shown in Varman under Admin > Integrations. Add one callback URL per environment. -
Turn on Request user authorization (OAuth) during installation.
-
Turn off Expire user authorization tokens. Varman does not refresh this token, so it must not expire.
-
Under Permissions, grant the read-only permissions listed above.
-
Set Where can this GitHub App be installed? to Any account.
-
Create the app, then generate a client secret.
-
In Varman, open Admin > Integrations (the Integration Credentials page), find GitHub App, paste the Client ID and Client Secret, and click Save Credentials.
Only the client ID and client secret are used. Varman does not need the App ID or a private key.
What gets synced and how often
Section titled “What gets synced and how often”The same data as the GitHub integration, limited to the repositories the app installation can see. Checks run on the daily schedule described in the overview, or when you click Run now.
Disconnect
Section titled “Disconnect”Open Integrations > GitHub App, click Settings, then Disconnect. Varman revokes the app authorization grant with GitHub, so a later reconnect starts fresh. To remove repository access completely, also uninstall the app from your organization. See Reviewing and modifying installed GitHub Apps.
Troubleshooting
Section titled “Troubleshooting”- The card says Coming Soon. The deployment has no GitHub App client ID and secret saved. Ask your platform admin to follow the steps above.
Needs setup: select Repositories to monitor. Open Settings and pick at least one repository.- A repository is missing from the picker. The app installation does not include it. Change the installation’s repository access in GitHub, then reopen Settings.
Cannot access code scanning configuration for <repo>. The installation lacks Administration: read on that repository.Cannot verify 2FA for <org>. The person who connected is not an organization owner. Reconnect as an owner, or remove that organization’s repositories from the selection.- After installing, GitHub sends you to the wrong app’s install page. The install redirect uses a
fixed app address in the manifest (
installUrl). If you run your own GitHub App, install it on your organization from its own page in GitHub first, then click Connect in Varman again.
For other check messages, see GitHub troubleshooting.