Actions: add a description of each GITHUB_TOKEN scope (#38378)
Co-authored-by: Siara <108543037+SiaraMist@users.noreply.github.com>
This commit is contained in:
@@ -226,6 +226,22 @@ The value of this parameter is a string specifying the data type of the input. T
|
||||
|
||||
{% data reusables.actions.jobs.section-assigning-permissions-to-jobs %}
|
||||
|
||||
### Defining access for the `GITHUB_TOKEN` scopes
|
||||
|
||||
{% data reusables.actions.github-token-available-permissions %}
|
||||
|
||||
#### Changing the permissions in a forked repository
|
||||
|
||||
{% data reusables.actions.forked-write-permission %}
|
||||
|
||||
### Setting the `GITHUB_TOKEN` permissions for all jobs in a workflow
|
||||
|
||||
You can specify `permissions` at the top level of a workflow, so that the setting applies to all jobs in the workflow.
|
||||
|
||||
#### Example: Setting the `GITHUB_TOKEN` permissions for an entire workflow
|
||||
|
||||
{% data reusables.actions.jobs.setting-permissions-all-jobs-example %}
|
||||
|
||||
## `env`
|
||||
|
||||
A `map` of variables that are available to the steps of all jobs in the workflow. You can also set variables that are only available to the steps of a single job or to a single step. For more information, see [`jobs.<job_id>.env`](#jobsjob_idenv) and [`jobs.<job_id>.steps[*].env`](#jobsjob_idstepsenv).
|
||||
@@ -269,7 +285,17 @@ env:
|
||||
|
||||
{% data reusables.actions.jobs.section-assigning-permissions-to-jobs-specific %}
|
||||
|
||||
### Example: Setting permissions for a specific job
|
||||
{% data reusables.actions.github-token-scope-descriptions %}
|
||||
|
||||
### Defining access for the `GITHUB_TOKEN` scopes
|
||||
|
||||
{% data reusables.actions.github-token-available-permissions %}
|
||||
|
||||
#### Changing the permissions in a forked repository
|
||||
|
||||
{% data reusables.actions.forked-write-permission %}
|
||||
|
||||
#### Example: Setting the `GITHUB_TOKEN` permissions for one job in a workflow
|
||||
|
||||
{% data reusables.actions.jobs.setting-permissions-specific-jobs-example %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user