GitHub App Integration Support for HyperExecute
This is currently in the Beta version.
HyperExecute supports integration with GitHub App, enabling secure, fine-grained, and scalable access to your GitHub repositories without relying on long-lived Personal Access Tokens (PATs).
With this integration, HyperExecute automatically generates short-lived installation access tokens via GitHub App for all Git-related operations in Projects and Workflows, enhancing security, compliance, and maintainability.
This integration supports three onboarding paths:
- TestMu AI's Marketplace GitHub App (Public Cloud)
- Your Existing GitHub App (On-Prem / Private Cloud)
- Private GitHub App Dedicated to Your Organization (On-Prem / Air-Gapped)
On-prem, which Git providers and GitHub App setup you can use depends on your deployment, so ask your admin which approach applies. For GitHub Enterprise Server, also read Multi-Tenant GitHub Support. See the On-Premise User Guide.
How It Works
- Install a GitHub App using one of the three supported approaches.
- Complete the post-installation registration within the TestMu AI platform.
- HyperExecute saves the app details (App ID and Installation ID) for your organization.
- For your own GitHub App (Approach 2), add the app's private key as an org-level secret. See Add the private key as an org-level secret.
Once setup is complete, all HyperExecute Project and Workflow Git operations use short-lived installation tokens instead of PAT tokens. The PAT-based flow is used only as a fallback when no GitHub App is configured.
Installation Approaches
HyperExecute supports three installation models, depending on your cloud type and organizational setup.
Approach 1: TestMu AI's Marketplace GitHub App (Public Cloud)
Prerequisites :
- Admin permissions in your target GitHub organization
Installation Steps
- Navigate to GitHub Marketplace
- Search for "TestMu AI" or "HyperExecute"
- Open the TestMu AI GitHub App listing
- Click Install
- Select your target GitHub Organization
- For GitHub Enterprise, installation must be completed per organization
- Configure repository access:
- All repositories (recommended)
- Select repositories
- Review the required permissions:
- Contents (read/write)
- Metadata (read)
- Click Install to complete the installation
Post-Installation Configuration
After installation, GitHub automatically redirects you to: https://{{accounts_base_url}}/org-settings/hyperexecute/git-integration
The redirect URL includes an installation_id parameter required for configuration.
Note: Only Org Admins can complete the registration. Organization users can view mappings but cannot modify them.
Approach 2: Your Existing GitHub App (On-Prem)
Prerequisites
- A GitHub App already exists in your GitHub organization
- Admin access to the GitHub App
- Required permissions are configured:
- Contents (read)
- Metadata (read)
Installation Steps
-
Obtain your app's installation ID from:
- Navigate to GitHub App → Installations → Installation URL
- Example URL format:
https://github.com/settings/installations/{installation_id}
-
Note the App ID from the GitHub App's settings page. You need it for the secret name later. It is not the Installation ID.
-
Navigate to the TestMu AI setup page:
https://{{accounts_base_url}}/org-settings/hyperexecute/git-integration
- Manually enter:
installation_id- Additional app details as required
Note: For GitHub Enterprise setups with multiple organizations, repeat this setup for each organization.
Additional Required Configuration
Add the GitHub App's private key as an org-level secret. HyperExecute uses it to generate short-lived tokens. The secret name includes the Git host, the GitHub organization and the App ID. See Add the private key as an org-level secret.
Approach 3: Private GitHub App (On-Prem Dedicated App)
Prerequisites
- Admin access in your target GitHub organization
- Private GitHub App installation URL shared by the TestMu AI/Workflow team
- Setup URL inside the GitHub App updated to the TestMu AI private setup URL
Installation Steps
- Navigate to the private app installation URL:
https://github.com/apps/{private-app-name}/installations/new
-
Select your GitHub organization
- Enterprise customers must repeat this process for each organization
-
Configure repository access permissions
-
Review and confirm the installation
Post-Installation Configuration
GitHub will redirect you to the private setup URL configured for your environment:
Verifiedhttps://{{private_accounts_base_url}}/org-settings/hyperexecute/git-integration
The redirect contains the installation_id parameter, which is required for configuration.
Note: Only Org Admins can complete this configuration step.
Multi-Tenant GitHub Support
HyperExecute supports connecting your organization to multiple GitHub instances at the same time. This is useful when your team works across both GitHub.com and a private GitHub Enterprise Server (e.g., ghes.yourcompany.com).
Each GitHub instance is called a tenant, identified by the hostname of the Git provider.
How It Works
When you create a project, HyperExecute automatically detects the tenant from your repository URL:
| Repository URL | Detected Tenant |
|---|---|
https://github.com/my-org/my-repo | github.com |
https://ghes.yourcompany.com/my-org/my-repo | ghes.yourcompany.com |
Each tenant maintains its own:
- GitHub App configuration (App ID, Installation ID)
- RSA private key for token generation
- Short-lived installation access tokens
Credentials are fully isolated between tenants, tokens and keys from one GitHub instance are never used for another.
What You Can Do
- Connect to multiple GitHub instances (e.g., GitHub.com + GitHub Enterprise Server)
- Have multiple GitHub Apps on the same tenant, for different GitHub organizations
Rule: each TestMu AI org can register one GitHub App per (tenant + GitHub org name) combination. HyperExecute looks up the private key by tenant, GitHub organization and App ID, so every GitHub organization needs its own org-level secret, named with that organization.
Recommendation: use a separate GitHub App for each GitHub organization. If one app's private key leaks, it can reach only the repositories of its own organization. Give each app access only to the repositories HyperExecute needs.
To set this up with your own GitHub Apps (Approach 2), install and register each app, then add one org-level secret for each GitHub organization, named as shown in Secret name.
Setup for Non-Default Tenants
For GitHub Enterprise Server or any tenant other than github.com:
-
Follow Approach 2 or Approach 3 to install the GitHub App on your enterprise instance.
-
For your own GitHub App (Approach 2), add its private key as an org-level secret, as described in Add the private key as an org-level secret. For example, an app with App ID
1234567for themy-orgorganization on a GitHub Enterprise Server atghes.yourcompany.comusesgithub_app_private_key_ghes.yourcompany.com_my-org_1234567. -
Complete the registration on the TestMu AI setup page. The tenant is recorded automatically based on the GitHub App's origin.
If you use the Marketplace GitHub App (Approach 1) on github.com, the platform manages the key, so you do not create a secret. If you use your own GitHub App on github.com (Approach 2), add the secret as described below.
Add the private key as an org-level secret
For your own GitHub App (Approach 2), HyperExecute needs the app's private key to generate installation tokens. Store it as an org-level secret.
Secret name
Name the secret in this format, one secret for each GitHub App:
github_app_private_key_<git_tenant>_<git_org>_<app_id>
For example, an app with App ID 1234567 for the my-org organization on github.com uses github_app_private_key_github.com_my-org_1234567.
<git_tenant>: the host name of your Git server, as it appears in the repository URL. For examplegithub.comorghes.yourcompany.com.<git_org>: the GitHub organization (or user) that owns the repositories, as it appears in the repository URL. Write it in lowercase, even if the name on GitHub has capital letters. Forhttps://github.com/My-Org/my-repo, usemy-org.<app_id>: the App ID shown on the GitHub App's settings page. It is not the Installation ID.
Secret value
The value is the app's private key (the .pem file you generate under Private keys on the GitHub App's settings page), encoded as base64 on a single line with no line breaks.
macOS:
base64 -i private-key.pem | tr -d '\n'
Linux:
base64 -w 0 private-key.pem
Windows (PowerShell):
[Convert]::ToBase64String([IO.File]::ReadAllBytes("private-key.pem"))
Paste the output as the secret value.
Check the setup
- Create a Project with a repository from that GitHub organization, and leave PAT Token empty.
- If the Project is created, the app and the secret work.
| What you see | Likely cause | What to do |
|---|---|---|
3003 - Git authentication is not configured or is invalid. Please configure and try again when you create a Project | The secret name does not match the repository, or the secret value cannot be read | Check that <git_org> is in lowercase, that <app_id> is the App ID and not the Installation ID, and that <git_tenant> matches the host in the repository URL. Re-encode the private key with one of the commands above, so the value is a single base64 line, and save the secret again. |