- Visit {% data variables.product.pat_v2_caps_plural %}.
- Under Resource owner, select your personal account. Do not select an organization. The {% data variables.product.prodname_copilot_short %} Requests permission is only available on user-owned {% data variables.product.pat_v2_plural %}.
- Under Repository access, select the level of access appropriate for your use case:
- Public repositories if you only need to work with public repos.
- All repositories if you need access across all your current and future repos.
- Only select repositories if you want to restrict access to specific repos.
- Under Permissions, select the Account tab.
- Click Add permissions and select {% data variables.product.prodname_copilot_short %} Requests.
- Click Generate token.
- Export the token in your terminal or environment configuration. Use the
COPILOT_GITHUB_TOKEN,GH_TOKEN, orGITHUB_TOKENenvironment variable (in order of precedence).