BAFOSJoin Waitlist
BAFOS Docs

GitHub Integration Guide

The GitHub integration connects your repositories in read-only mode to track code commits, pull request velocity, CI/CD workflow status, and deployment environments.

What It Does

  • Code Velocity: Tracks commit volume and frequency over 24-hour cycles for the Morning Pulse.
  • Pull Request Tracking: Detects open PRs, reviewers, and stale pull requests inactive for > 7 days.
  • CI/CD Workflow Status: Detects failing GitHub Actions checks on default branches.
  • Ephemeral Previews: Automatically discovers preview deployment URLs from GitHub Deployments.

Connection Options

Option A (Zero Setup)

Public Repository Mode

For open-source and public repositories, simply enter the owner/repo name. No token or authentication is required.

Option B (Recommended)

Personal Access Token (PAT)

Use a read-only GitHub Personal Access Token. Works immediately with zero organization admin setup.

Option C (Enterprise)

1-Click GitHub App (OAuth)

Connect with one click if your organization administrator has configured a GitHub OAuth App in the platform settings.

Step-by-Step: How to Generate a Personal Access Token

1

Open GitHub Token Settings

In GitHub, click your profile photo in the top right, select Settings, scroll down to Developer Settings in the left sidebar, and click Personal access tokens → Fine-grained tokens (or github.com/settings/tokens ↗).

2

Configure Token Permissions

Click Generate new token. Configure the following:

  • Token name: BAFOS Read-Only Monitor
  • Expiration: 90 days or custom duration
  • Repository access: Choose Only select repositories and select your project repo.
  • Permissions (under Repository permissions):
    • Commit statuses: Read-only
    • Contents: Read-only
    • Deployments: Read-only
    • Metadata: Read-only (mandatory)
    • Pull requests: Read-only
3

Copy & Paste into BAFOS

Click Generate token. Copy the token string (starts with github_pat_ or ghp_). In BAFOS, open Project Settings → Connected Stack → GitHub, paste the token, enter your repository name (e.g., acme/web-app), and click Test & Save Connection.

Maintained Changelog

DateTypeDescription
2026-11-17AddedDedicated /tools/github project page with commit velocity sparklines and live PR lists.
2026-11-16ImprovedEphemeral deployment previews automatically extracted from GitHub Deployments API.
2026-11-15AddedPublic repo zero-auth fallback mode and AES-256-GCM token encryption in vault.
2026-11-10InitialGitHub repository adapter with stale PR detection and CI check run status streaming.