> Godmode v0.20.0 documentation · Reviewed 2026-11-19
> Source: https://godmode.build/docs/v0.20.0/provider-github

# GitHub

Keep your product's code, issues, and release workflows in one place.

## Connect GitHub

Keep a working [native login](/docs/v0.20.0/credentials#keep-a-working-login), or save the keys below.

```sh
godmode setup github
```

## Account access

A fine-grained personal access token acts as its owner within one selected user or organization. The setup requests broad repository write access, including administration, across all repositories for that owner. Organization approval, token lifetime policy and your own role still apply; other accounts or API operations can require different permissions or a GitHub App.

## Add credentials

Save only the keys your product needs.

### Access token

Give your agent access to your product's repositories and release work.

**[Visit GitHub's token page](https://github.com/settings/personal-access-tokens/new?name=godmode&expires_in=366&administration=write&contents=write&workflows=write&actions=write&secrets=write&actions_variables=write&environments=write&issues=write&pull_requests=write)**

1. Choose the **Resource owner** and **All repositories**.
2. Select **Generate token** and copy it.

Save as `GH_TOKEN` in Godmode.

## Check access

- Use the official GitHub CLI or API to identify the token owner and read an intended repository. Check the endpoint's required permissions before creating repositories, configuring Actions, managing secrets or opening pull requests. A successful identity check alone does not prove repository write access.

## Restore access

- For permission failures, check the resource owner, repository selection and organization approval first. For an expired or revoked token, create a replacement through GitHub and save it with godmode set GH_TOKEN. Verify the intended operation before retiring a still-valid old token.

## Provider docs

- [Personal access tokens and permissions](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
- [GitHub CLI authentication environment](https://cli.github.com/manual/gh_help_environment)

Source: Godmode v0.20.0 provider catalog · 2026-11-13.
