Overview
The GitHub integration makes Pwnbook a first-class PR review environment. Once connected, GitHub appears as an external source in your sidebar, giving you access to:- Pull request list across all connected repositories
- Full PR detail: commits, file diffs with syntax highlighting, reviews, inline code comments
- Post issue comments and submit reviews (Approve, Request Changes, Comment) directly from Pwnbook
- Expandable diff context on inline review comments
PAT requirements
GitHub access uses a Personal Access Token (PAT). You configure your own PAT in Profile → Connections tab.Recommended: fine-grained PAT
Create a fine-grained PAT at GitHub → Settings → Developer Settings → Personal Access Tokens → Fine-grained tokens.
Important: If you’re accessing repositories in a GitHub organization, the PAT’s resource owner must be set to that organization — not your personal account. GitHub fine-grained PATs scoped to “all repositories owned by you” only cover your personal repos.
To create an org-scoped PAT, go to:
Alternative: classic PAT
A classic PAT with therepo scope works for both personal and organization repositories without the resource owner restriction.
Multi-PAT support
If you work across multiple GitHub organizations with different access scopes, you can add multiple PATs in Profile → Connections. Each PAT can be scoped to a specific organization (by org name) or set as a catch-all. When Pwnbook fetches data for a PR:- It looks for a PAT matching the PR’s repository owner.
- If no match, it falls back to your catch-all PAT.
- If no multi-PAT is configured, it falls back to your legacy Code Hosting Connection PAT.
Setting up the GitHub App
For organization-wide sync of pull requests, repositories, and webhook events, connect a GitHub App:1
Install the GitHub App
- Go to Organization Settings → Marketplace → GitHub.
- Click Install GitHub App.
- You’ll be redirected to GitHub to install the Pwnbook GitHub App.
- Select the GitHub organization or personal account.
- Choose which repositories to grant access to.
- Click Install.
2
Sync repositories
After installing, click Sync Repositories to pull the list of repositories the app has access to. This populates the repository list in the GitHub external source.
3
Sync pull requests
Click Sync Pull Requests to import open PRs from connected repositories into Pwnbook. Pull requests are then available for review in the GitHub external source.
Reviewing pull requests
Navigate to Sources → GitHub in the sidebar to access the PR list.PR detail view
Click any pull request to open the detail view. The tabs show:
All comment and review bodies render full markdown.
Submitting a review
From the Reviews tab, the review panel is at the top:- Optionally type a review comment.
- Click Approve, Request changes, or Comment only.
Posting a comment
From the Comments tab:- Type your comment in the input at the bottom.
- Click Post comment.
Webhook events
When the GitHub App is installed, Pwnbook responds to the following webhook events:Uninstalling the GitHub App
To completely remove the GitHub App from your GitHub account or organization:- Go to GitHub → Settings → Applications → Installed GitHub Apps.
- Find the Pwnbook app and click Configure.
- Click Uninstall.