GitHub Integration

'Connect GitHub to Supervity, authorize access, and use GitHub repositories, issues, pull requests, commits, branches, releases, Projects v2, and real-time triggers in operators and workflows.'

This guide explains how to connect GitHub to Supervity, what data is available after connection, how operators can use GitHub data and actions within workflows, and how to remove the integration when needed.


Overview

The Supervity GitHub integration allows your workspace to securely connect GitHub as a governed engineering and DevOps platform.

Once connected, operators and workflows can inspect repositories, manage issues and pull requests, explore commit trees and branches, update repository files, draft and publish releases, read and update GitHub Projects (v2) boards, and react instantaneously to code and collaboration events through real-time webhooks.

With the GitHub integration, Supervity can:

  • Query public and private repositories across personal accounts and organizations
  • Create, retrieve, update, and manage GitHub issues and comments
  • List, inspect, open, update, and merge pull requests
  • View git commits, branch lists, create feature branches, and delete branches
  • Read file contents, commit updates (with base64 encoding), and delete files
  • Create, edit, and publish GitHub releases and asset tags
  • Query and update GitHub Projects (v2) items, status, and custom fields via GraphQL
  • React to repository activity via real-time webhooks (push, pull request, issue opened, comment created)
  • Prevent infinite automation loops through built-in webhook echo suppression

All GitHub access is governed through Supervity's security, permissions, and audit controls.


Why Use the GitHub Integration?

GitHub is the world's leading platform for software development and developer collaboration. Connecting GitHub to Supervity unlocks autonomous engineering workflows:

  • Automated Pull Request Reviews: Trigger an AI operator when a pull request is opened to summarize changes, check guidelines, and comment on code.
  • Incident & Bug Intake: Automatically convert customer error reports into well-documented GitHub issues with reproduction details and labels.
  • Automated Release Preparation: Draft release notes and publish GitHub releases when milestone issues or PRs are completed.
  • Project Board Synchronization: Keep GitHub Projects (v2) status and priority fields synchronized with product management tools like Jira or Linear.
  • Code Generation & File Updates: Programmatically commit generated documentation, changelogs, or configuration files directly into branches.
  • Branch Lifecycle Automation: Create feature branches automatically when work starts and clean up stale branches when pull requests merge.

Prerequisites

Before connecting GitHub, ensure you have:

  • An active Supervity workspace
  • A GitHub account with access to the target repositories
  • Permission to authorize OAuth applications for your user and organization
  • For organization-owned repositories: approval from an organization owner if third-party application access restrictions are enabled
  • If your organization enforces SAML Single Sign-On (SSO): authorized SSO access for the Supervity OAuth application

Adding the GitHub Integration

Follow these steps to connect GitHub to Supervity. If you encounter any issues during setup, refer to the Troubleshooting section of this guide.

Step 1: Open Integrations

  1. Log in to Supervity.
  2. From the left navigation bar, click the Integrations icon.

This opens the Integrations page, displaying all available connectors.

Step 2: Select GitHub

  1. Locate GitHub in the available integrations list.
  2. Click Connect.

Step 3: Authorize Access

You will be redirected to GitHub's OAuth authorization portal.

  1. Review the requested permissions:
    • repo: Access to private and public repositories
    • admin:repo_hook: Manage webhooks for real-time triggers
    • read:org: Read organization memberships for org repository discovery
    • project: Access and update GitHub Projects (v2) boards
  2. If your account belongs to organizations with restricted access, click Grant or Request next to the relevant organizations.
  3. Click Authorize to connect your account.
  • Supervity implements GitHub's standard OAuth 2.0 authorization protocol.
  • Your GitHub password and personal access tokens are never shared with or stored by Supervity.

Step 4: Complete Connection

After authorization, you will be redirected back to Supervity automatically.

The GitHub integration will appear as Connected on the Integrations page. Your workspace can now interact with GitHub repositories according to the permissions granted.

Having trouble? See the Troubleshooting section for solutions to common connection issues.


How GitHub Works in Supervity

After connection, GitHub functions as a governed engineering tool.

Operators can invoke GitHub actions dynamically when asked to review code, file bugs, or update files, while workflows can automate continuous delivery and issue triage.

Common workflow patterns include:

  • Listening for github.issues.opened to analyze new bug reports and apply triaging labels
  • Responding to github.pull_request to run automated compliance checks
  • Generating changelog entries and committing them directly via create_or_update_file
  • Updating the Priority or Status field of an item in GitHub Projects (v2)
  • Releasing a new semantic version with auto-generated release notes

Using GitHub in Operators

Connected GitHub capabilities become available to operators automatically. Operators evaluate user requests, determine whether GitHub repositories or project boards are needed, and execute operations safely.

What Operators Can Do with GitHub

  • Repositories & Branches: Inspect repositories, list and checkout branches, and delete merged branches.
  • Issues & Discussions: Search issues, file detailed bug reports, and add comments to ongoing threads.
  • Pull Requests: Inspect diffs, create PRs from working branches, update PR bodies, and merge approved PRs.
  • File Management: Retrieve raw file contents, create files, or modify existing files with git commit messages.
  • Releases: Create and update GitHub releases with release notes.
  • Projects v2: Inspect project board items and update custom fields (Status, Priority, Iteration).

Typical Operator Use Cases

Use CaseExample Workflow
Automated PR ReviewSummarize incoming PR diffs and post review comments
Bug Report TriageLabel newly opened issues based on content analysis
Release Note GenerationCompile merged PRs into a published GitHub Release
Project Board TrackingMove issues to "Done" in GitHub Projects v2 upon PR merge
Config File MaintenanceUpdate configuration files directly in repository branches
Branch ManagementAutomatically delete feature branches after PR merge

Features & Prerequisites

For each GitHub capability available in Supervity, the following describes the use case and the prerequisites required before use.

List Repositories

Use Case: List repositories accessible to the user (includes private repositories when repo scope is granted).

Prerequisites:

  • GitHub account connected to Supervity
  • Read repository permissions enabled (repo scope)

Get Repository

Use Case: Retrieve comprehensive repository details, default branch, clone URLs, and settings.

Prerequisites:

  • GitHub account connected to Supervity
  • owner and repo name (e.g., octocat/Hello-World)

Create Repository

Use Case: Create a new repository in a personal account or organization.

Prerequisites:

  • GitHub account connected to Supervity
  • Repository name and visibility settings (public or private)

Update Repository

Use Case: Modify repository settings (description, default branch, issue features).

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo name

Delete Repository

Use Case: Permanently delete a repository from GitHub.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo name
  • Repository admin rights and delete repository permission (delete_repo scope)

List Issues

Use Case: Query issues for a repository, filtering by state (open, closed), labels, or milestone.

Prerequisites:

  • GitHub account connected to Supervity
  • owner and repo name

Get Issue

Use Case: Retrieve details of a specific issue by issue number.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo name, and issue_number

Create Issue

Use Case: Create a new issue with title, body, labels, and assignees. Includes automated loop prevention.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, title, and optional body/labels

Update Issue

Use Case: Modify an issue's title, body, state (open or closed), labels, or assignees.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and issue_number

List Pull Requests

Use Case: List pull requests with filters for state (open, closed, all), base branch, or sort order.

Prerequisites:

  • GitHub account connected to Supervity
  • owner and repo name

Get Pull Request

Use Case: Retrieve details for a pull request, including head/base branches, mergeable state, and changed files.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and pull_number

Create Pull Request

Use Case: Open a new pull request from a source branch into a target base branch.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, head (source branch), base (target branch), and title

Update Pull Request

Use Case: Update PR title, description, or target base branch.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and pull_number

Merge Pull Request

Use Case: Merge a pull request using merge, squash, or rebase.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and pull_number
  • Write and merge permissions on the repository

List Commits

Use Case: Query commit history on a repository branch or path.

Prerequisites:

  • GitHub account connected to Supervity
  • owner and repo name

Get Commit

Use Case: Retrieve details, diff stats, and commit message for a specific commit SHA.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and commit_sha

List Branches

Use Case: List all branches in a repository.

Prerequisites:

  • GitHub account connected to Supervity
  • owner and repo name

Get Branch

Use Case: Retrieve metadata, protection rules, and head commit for a branch.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and branch name

Create Branch

Use Case: Create a new branch pointing to an existing commit SHA or branch.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, branch name, and sha

Delete Branch

Use Case: Delete a feature branch after merge (cannot delete default branch).

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and branch name

List Issue Comments

Use Case: Retrieve comments on an issue or pull request.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and issue_number

Create Issue Comment

Use Case: Post a comment on an issue or PR with markdown formatting. Suppresses webhook echo loops.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, issue_number, and body

Update Issue Comment

Use Case: Modify an existing comment.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, comment_id, and body

Delete Issue Comment

Use Case: Delete an issue comment.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and comment_id

Get File Content

Use Case: Retrieve the content of a file in a repository at a specific branch or path.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and path

Create or Update File

Use Case: Create or replace a file in a repository branch. Content must be base64 encoded. Includes commit loop suppression.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, path, message, content (base64), and existing sha when updating

Delete File

Use Case: Remove a file from a repository branch with a commit message.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, path, message, and sha

List Releases

Use Case: List published releases and tags for a repository.

Prerequisites:

  • GitHub account connected to Supervity
  • owner and repo name

Get Release

Use Case: Retrieve release details, release notes, and assets.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and release_id

Create Release

Use Case: Publish a new release with tag name, title, body, and draft status.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and tag_name

Update Release

Use Case: Update release notes or published status.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and release_id

Delete Release

Use Case: Delete a release from a repository.

Prerequisites:

  • GitHub account connected to Supervity
  • owner, repo, and release_id

List Project Items

Use Case: Retrieve items on a GitHub Project (v2) board, including custom fields like Priority and Status.

Prerequisites:

  • GitHub account connected to Supervity
  • Project Node ID must be provided
  • Projects permission enabled (project scope)

Add Project Item

Use Case: Add an existing issue or pull request into a GitHub Project (v2) board.

Prerequisites:

  • GitHub account connected to Supervity
  • Project Node ID and Issue/PR Node ID (GraphQL ID, not number)
  • Projects permission enabled (project scope)

Update Project Item Field

Use Case: Update custom fields (single-select values like Status/Priority, text, dates, numbers) on a project item.

Prerequisites:

  • GitHub account connected to Supervity
  • Project Node ID, Item Node ID, Field Node ID, and Option ID
  • Projects permission enabled (project scope)

Get Authenticated User

Use Case: Retrieve profile data for the connected GitHub account.

Prerequisites:

  • GitHub account connected to Supervity
  • User profile permissions enabled (user scope)

Get User

Use Case: Retrieve public profile details for any GitHub user by login.

Prerequisites:

  • GitHub account connected to Supervity
  • Target GitHub username

Real-Time Webhook Triggers

Supervity provides real-time event triggers for GitHub repositories:

Trigger NameCatalog KeyDescription
Code pushedgithub.pushFires when commits are pushed to any branch in the repository.
Pull request activitygithub.pull_requestTriggers when a PR is opened, closed, reopened, or synchronized.
Issue openedgithub.issues.openedFires immediately when a new issue is opened in the repository.
Issue comment createdgithub.issue_comment.createdTriggers when a new comment is posted on an issue or pull request.

Automated Echo Suppression

When Supervity operators create issues, post comments, push commits, or open pull requests, the system marks the resulting IDs internally (mark_sent_by_workflow). Inbound webhook notifications matching these IDs are dropped automatically to prevent recursive automation loops.


Permissions Requested

Supervity only requests the permissions required for enabled GitHub capabilities.

Depending on the features used in your workspace, permissions may include:

Permission TypePurpose
User ProfileAssociate GitHub data with authorized user accounts and verify identity
Repository AccessInspect repositories, commits, branches, and read file contents
Issue & Pull Request ManagementCreate, update, and manage issues, pull requests, and discussion comments
Code & File ManagementCommit updates, add files, and manage repository assets
Webhook AdministrationRegister and manage repository webhooks for real-time workflow triggers
Organization MembershipDiscover organization repositories and team structures
Projects & BoardsRead and update GitHub Projects (v2) items, status, and custom fields

Supervity follows least-privilege principles and only accesses data necessary to provide requested functionality.


Authentication & Security

GitHub integration adheres to strict enterprise security practices:

  • OAuth 2.0: Direct authentication via official GitHub OAuth apps.
  • Token Security: Tokens are encrypted at rest using AES-256-GCM.
  • TLS 1.3: All communication with GitHub REST and GraphQL APIs uses TLS 1.3.
  • SAML SSO Support: Fully compatible with enterprise organizations enforcing SAML single sign-on.
  • Audit Logs: Every commit, merge, issue creation, and webhook event is logged with full operator context in Supervity.

Troubleshooting

Private Repositories Not Showing

  • Cause: The OAuth token was authorized without the repo scope or organization access was restricted.
  • Resolution: Disconnect and reconnect GitHub in Supervity, ensuring that the repo scope is approved and that access is granted for the relevant organization.

Organization SAML SSO Prompt

  • Cause: The organization requires authorized SSO for third-party apps.
  • Resolution: In GitHub, visit Settings > Applications > Authorized OAuth Apps, find Supervity, and click Grant or Enable SSO next to your organization.

INSUFFICIENT_SCOPES on GitHub Projects (v2)

  • Cause: Existing tokens connected prior to Projects v2 support may lack the project scope.
  • Resolution: Disconnect GitHub from the Supervity Integrations page and reconnect to grant the project scope.

Frequently Asked Questions

Q: Can Supervity access repositories across multiple GitHub organizations?
Yes, as long as your connected GitHub user account has membership and permissions in those organizations and organization owners have approved the OAuth app.

Q: Can Supervity commit binary files to repositories?
Yes. When using create_or_update_file, the content parameter accepts standard base64-encoded strings, allowing binary files, images, or compiled artifacts to be committed.

Q: Does Supervity work with GitHub Enterprise Server?
The standard connector integrates with GitHub Cloud (github.com). Contact support for dedicated GitHub Enterprise Server configurations.


Support

If you need assistance with the GitHub integration, visit the Support page.

Support Hours

  • Monday to Friday, 9:00 AM – 6:00 PM IST
  • Requests submitted outside business hours will be addressed on the next business day

First Response SLA

  • All support requests receive an initial response within 24 business hours

Contact Information

When Contacting Support, Please Provide

  • Workspace name
  • GitHub account username/email used for authorization
  • Repository name (owner/repo)
  • Relevant workflow or operator information
  • Error messages or screenshots when available

This helps the support team investigate and resolve issues more quickly.


product-guide/integrations-overview/github