Skip to content

Commit 74a0655

Browse files
Correct instructions to avoid 403 when auth'd via PAT
You need to give the token "Models" permissions, otherwise when authing non-interactively with COPILOT_GITHUB_TOKEN you get a 403. There are a few open issues in the Copilot CLI repo about this, eg github/copilot-cli#1316
1 parent 12e8511 commit 74a0655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/copilot/how-tos/copilot-cli/install-copilot-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ On first launch, if you're not currently logged in to {% data variables.product.
118118

119119
### Authenticating with a {% data variables.product.pat_generic %}
120120

121-
You can also authenticate using a {% data variables.product.pat_v2 %} with the "{% data variables.product.prodname_copilot_short %} Requests" permission enabled.
121+
You can also authenticate using a {% data variables.product.pat_v2 %} with the "{% data variables.product.prodname_copilot_short %} Requests" and "Models" permissions enabled.
122122

123123
1. Visit [{% data variables.product.pat_v2_caps_plural %}](https://github.com/settings/personal-access-tokens/new).
124124
1. Under "Permissions," click **Add permissions** and select **{% data variables.product.prodname_copilot_short %} Requests**.

0 commit comments

Comments
 (0)