# GitHub Codes

## Connection Requirements

{% stepper %}
{% step %}

### Personal Access Token

Authorization string provided by the Github API configuration.

* GitHub ➜ Settings ➜ Developer settings ➜ Personal access tokens ➜ Fine-grained tokens ➜ Generate new token.
* Choose your organization.
* Give repository access to All or select specific repos.
* Repository permissions (set to Read) -> Metadata: Read, Contents: Read, Pull requests: Read, Issues: Read
* Organization permissions (Read) -> Members: Read
* If your org requires approval for FG-PATs, an owner must approve it
* Generate and save token
  {% endstep %}
  {% endstepper %}


---

# Agent Instructions: 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:

```
GET https://docs.octoxlabs.com/adapters/adapters/github-codes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
