You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-13Lines changed: 2 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Create a workflow (eg: `.github/workflows/copilot-usage.yml`). See [Creating a W
16
16
17
17
### PAT(Personal Access Token)
18
18
19
-
You will need to [create a PAT(Personal Access Token)](https://github.com/settings/tokens/new?scopes=admin:org) that has the `copilot`, `manage_billing:copilot`, `admin:org`, `admin:enterprise`, or `manage_billing:enterprise`scope to use this endpoint.
19
+
You will need to [create a PAT(Personal Access Token)](https://github.com/settings/tokens/new?scopes=manage_billing:copilot) that has the `manage_billing:copilot`, `read:org`, or `read:enterprise`scopes to use this endpoint.
20
20
21
21
Add this PAT as a secret so we can use it as input `github-token`, see [Creating encrypted secrets for a repository](https://docs.github.com/en/enterprise-cloud@latest/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository).
We look first for `enterprise` input, then `team`, and finally `organization`. If none are provided, we default to the repository owner which is likely the organization.
154
+
If no `organization` or `team` input are provided, we default to the repository owner which is likely the organization.
164
155
165
156
Various inputs are defined in [`action.yml`](action.yml):
166
157
167
158
| Name | Description | Default |
168
159
| --- | --- | --- |
169
160
| github-token | The GitHub token used to create an authenticated client | |
0 commit comments