When GitHub Actions copilot-requests authentication is available, gh aw add-wizard should use the organization's Copilot billing. No personal access token or COPILOT_GITHUB_TOKEN secret is needed.
When it is unavailable, the wizard should open a preconfigured GitHub fine-grained PAT creation page. The page must prefill the token name and request only the required Copilot Requests: Read-only permission, so the user only needs to review and consent to create the token. The wizard should also support advance consent, allowing setup to continue without an additional confirmation gate if the users choses to. After token creation, it collects the token through masked input, validates the github_pat_ format, and stores it securely as the COPILOT_GITHUB_TOKEN repository secret.
When GitHub Actions
copilot-requestsauthentication is available,gh aw add-wizardshould use the organization's Copilot billing. No personal access token orCOPILOT_GITHUB_TOKENsecret is needed.When it is unavailable, the wizard should open a preconfigured GitHub fine-grained PAT creation page. The page must prefill the token name and request only the required
Copilot Requests: Read-only permission, so the user only needs to review and consent to create the token. The wizard should also support advance consent, allowing setup to continue without an additional confirmation gate if the users choses to. After token creation, it collects the token through masked input, validates thegithub_pat_format, and stores it securely as theCOPILOT_GITHUB_TOKENrepository secret.