Skip to content

Commit 7d81006

Browse files
committed
docs: include copilot-requests in Actions permissions reference
1 parent 45500d7 commit 7d81006

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎data/reusables/actions/github-token-available-permissions.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ permissions:
77
attestations: read|write|none{% endif %}
88
checks: read|write|none{% ifversion code-quality %}
99
code-quality: read|write|none{% endif %}
10-
contents: read|write|none
10+
contents: read|write|none{% ifversion copilot %}
11+
copilot-requests: write|none{% endif %}
1112
deployments: read|write|none{% ifversion fpt or ghec %}
1213
id-token: write|none{% endif %}
1314
issues: read|write|none

‎data/reusables/actions/github-token-scope-descriptions.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ Available permissions and details of what each allows an action to do:
1616
| `code-quality` | Work with code quality. For example, `code-quality: write` permits an action to upload code coverage reports. For more information, see [AUTOTITLE](/code-security/concepts/code-quality/code-quality). |
1717
| {% endif %} |
1818
| `contents` | Work with the contents of the repository. For example, `contents: read` permits an action to list the commits, and `contents: write` allows the action to create a release. For more information, see [AUTOTITLE](/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-contents). |
19+
| {% ifversion copilot %} |
20+
| `copilot-requests` | Make {% data variables.product.prodname_copilot_short %} requests. For example, `copilot-requests: write` permits a workflow in an organization-owned repository to use {% data variables.copilot.copilot_cli_short %} with `GITHUB_TOKEN` when the organization's billing policy allows it. Only `write` and `none` are supported. See [AUTOTITLE](/copilot/how-tos/copilot-cli/use-copilot-cli-in-actions). |
21+
| {% endif %} |
1922
| `deployments` | Work with deployments. For example, `deployments: write` permits an action to create a new deployment. For more information, see [AUTOTITLE](/rest/authentication/permissions-required-for-github-apps?apiVersion=2022-11-28#repository-permissions-for-deployments). |
2023
| `discussions` | Work with GitHub Discussions. For example, `discussions: write` permits an action to close or delete a discussion. For more information, see [AUTOTITLE](/graphql/guides/using-the-graphql-api-for-discussions). |
2124
| {% ifversion fpt or ghec %} |

0 commit comments

Comments
 (0)