Purpose
The GitHub integration allows AirMDR to:- Access repository metadata and content information.
- Enrich investigations with GitHub repository context.
- Monitor repository-related security events.
- Support investigations involving source code repositories and development workflows
Pre-requisites
- Create a new GitHub account, to avoid an outage to existing organization GitHub users, as a new PAT will be generated.
- Ensure the new user is invited to the organization. The new user must accept the invitation only to join the organization and the relevant team.
Authentication Methods
AirMDR supports the following authentication methods:Fine-Grained Personal Access Token
Fine-Grained Tokens provide enhanced security through repository-level scoping and granular permissions.Verify Organization Settings
- An organization administrator must enable Fine-Grained Personal Access Tokens.
- Navigate to Organization → Settings → Third-party Access → Personal access tokens → Settings.
- Configure Fine-grained tokens:
- Enable Allow access via fine-grained personal access tokens
- Click Save.
If Require administrator approval is enabled, generated tokens must be approved by an organization administrator before they can be used.
Create a Dedicated GitHub Service Account (Optional)
- Create a dedicated GitHub user account.
- Add the account to your GitHub organization.
- Use this account exclusively for AirMDR integrations.
Navigate to Fine-Grained Token Creation
- Navigate to GitHub → Developer Settings.
- Select the Personal access tokens drop-down in the left navigation pane.
- Click “Fine-grained tokens” → Generate new token.

Configure Basic Token Details & Select Resource Owner and Configure Repository Access
- Provide:
- Under Resource Owner.
- Select your GitHub Organization.
Example:Resource Owner: MyOrganizationThis ensures the token is scoped to organization repositories. - Select the Expiration as per organizational policy.
The token will expire on the selected date.
- Option A: Choose “All Repositories”.
Recommended as AirMDR can investigate all repositories.
(Or)
Option B: Selected Repositories.Recommended for least-privilege deployments.
Configure Required Permissions
- Under Repository Permissions, configure:
- Metadata permission is automatically selected and required by GitHub.
- No additional permissions are required.
Generate Token
- Click Generate Token, and Copy the Token immediately.
- Submit the token request to the organization administrator.
- Wait for approval before configuring AirMDR.
Generate GitHub Personal Access Token (PAT)
GitHub PAT increases Security, Fine-Grained Permissions, and fulfills the GitHub compliance policy for HTTPS Authentication.Access GitHub
- Login with GitHub with admin credentials.
- Navigate to GitHub → Profile (Top right corner) → Settings → Developer Settings.
Generate a Personal Access Token
- Select the Personal access tokens drop-down in the left navigation pane.
- Click Tokens (classic).
- Click “Generate new token” and select “Generate new token (classic)”.
- Provide a Token name (descriptive name, For Example: “AirMDR Integration”).
- Select Expiration:
- Choose a token lifespan or set it to “Never Expiration”.
- Set Permissions:
- Choose scopes and define the following permissions:
repo(Full control of private repositories)read:org(Read-only access to organization, teams, and membership)read:user(Read-only access to profile information)
- Choose scopes and define the following permissions:
- Generate and Copy the Token:
Securely share GitHub PAT
Integration Credential Requirements
Use the following values in the AirMDR integration configuration screen:Fine-Grained Token Requirements (Recommended)
Important:
AirMDR recommends using Fine-Grained Personal Access Tokens whenever possible, as they provide enhanced security through repository-level access control and least-privilege permissions.
Classic Token Requirements (Legacy)
Example AirMDR Configuration
GitHub Integration - Authentication Architecture

GitHub Credential Reference Table
Validate Connectivity
Use the following command to verify connectivity and token authentication:Sample Request
Sample Request
Successful Response
Successful Response
Verify Repository Access
Verify Repository Access
401 Unauthorized error, verify that the token is valid and has not expired. If you receive a
403 Forbidden error, verify that the required repository permissions have been granted and, for Fine-Grained Tokens, ensure the token has been approved by your GitHub organization administrator.Configure GitHub in AirMDR Integrations Dashboard
- Navigate to AirMDR, provide the credentials and click Login
- Navigate to the AirMDR Integrations Dashboard in the left navigation pane and select Integrations.
- Use the search option, enter the keyword “GitHub”, select the Connections tab, and click + Create button.
- Enter an unique name to the Instance (e.g.,
your org name-GitHub) to easily identify the user connection by AirMDR. - Enter the application credentials like
Auth_tokenin the Authentication Details field params, and click Save.
Skills provided by this Integration
Additional Information
🧰 Error Handling
🧰 Error Handling
🔄 Monitoring & Logs
🔄 Monitoring & Logs
AirMDR Monitoring
After configuring the integration, administrators can monitor:- Integration connection status
- Authentication validation results
- Repository data synchronization status
- Integration execution history
- Error and connectivity notifications
- Personal Access Token usage
- Repository access events
- Authentication attempts
- Organization-level permission changes
- Token approval activities (Fine-Grained Tokens)
- API authentication events
- Repository access records
- Security and audit events
🛑 Security & Access Best Practices
🛑 Security & Access Best Practices
✅ Do’s
❌ Don’ts
Security Recommendation For production environments, AirMDR recommends using a dedicated GitHub service account with a Fine-Grained Personal Access Token, repository-specific access, and read-only permissions to align with security best practices and the principle of least privilege.
👉 Support & Maintenance
👉 Support & Maintenance
- 📧 Contact AirMDR Support through your designated support channel.
- 🔁 Rotate credentials regularly. Regular maintenance of the GitHub integration helps ensure uninterrupted connectivity, secure access, and reliable repository monitoring.
🛑 Data Flow & Security
🛑 Data Flow & Security
https://api.github.comAccess ModelSecurity Recommendation AirMDR recommends using Fine-Grained Personal Access Tokens with Metadata (Read-only) and Contents (Read-only) permissions to align with the principle of least privilege and minimize security exposure.

