> For the complete documentation index, see [llms.txt](https://gitbook.tryprotege.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.tryprotege.com/integrations/github.md).

# GitHub

## What this is

GitHub is a Hookshot™ integration that connects your GitHub organization or repository to Hookshot. GitHub commonly serves as a source of issue and repository activity and as a workflow input for triage, routing, and review.

## When to use it

* When GitHub events should start a Protege
* When a Protege needs to read GitHub context or take an action tied to GitHub data
* When you want to triage, route, or review GitHub issues and pull requests automatically

## What you need first

* Access to the GitHub organization, repository, or account you want to connect
* Permission to approve the connection
* A clear repo or project boundary for the automation

## Steps

### 1. Connect GitHub

1. Open **Integrations**.
2. Select **GitHub**.
3. Complete the connection flow.
4. Confirm the connection is active.

### 2. Review Trigger Access

Use Trigger Access when GitHub events should start the Protege.

Examples:

* New issue activity
* Selected repository events

Confirm the trigger source points to the intended repo or project boundary.

### 3. Review Tool Access

Use Tool Access when the Protege should read GitHub context or take an action tied to GitHub data or results derived from it.

Examples:

* Read issue context
* Read pull request context
* Support triage or routing workflows
* Feed a downstream action in another system

If the Protege should only operate on one repo, keep the connection boundary as narrow as possible.

### 4. Review permissions

Review the GitHub consent screen and allow only what your workflow needs. In practice, Hookshot™ needs permission to:

* Read the GitHub objects that should activate the workflow
* Access enough repository context for the Protege to make the intended decision

If the Protege should only operate on one repo or one team workflow, keep the connection boundary as narrow as possible.

## How to verify

* Confirm GitHub is connected
* Confirm the intended trigger source is live
* Trigger a safe test event in the intended repo boundary
* Confirm the event appears in Event Feed
* Confirm the corresponding run appears in Audit

## Common failures

* Connecting the wrong repo or account
* Treating a repo-level workflow like an org-wide workflow
* Forgetting to validate the exact event type that should activate the Protege
* Event Feed shows the event but the Protege is `skipped` — review the Protege description and readiness

## Next step

* [Asana](/integrations/asana.md)
* [Integrations Overview](/integrations.md)
* [Event Feed](/event-feed.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.tryprotege.com/integrations/github.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
