Skip to content

Commit 7c7438b

Browse files
Change section header for workflow job permissions (#45434)
Co-authored-by: Sharra-writes <sharra-writes@github.com>
1 parent 6032175 commit 7c7438b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/actions/reference/workflows-and-actions/workflow-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ The value of this parameter is a string specifying the data type of the input. T
283283

284284
{% data reusables.actions.forked-write-permission %}
285285

286-
## How permissions are calculated for a workflow job
286+
### How permissions are calculated for a workflow job
287287

288288
The permissions for the `GITHUB_TOKEN` are initially set to the default setting for the enterprise, organization, or repository. If the default is set to the restricted permissions at any of these levels then this will apply to the relevant repositories. For example, if you choose the restricted default at the organization level then all repositories in that organization will use the restricted permissions as the default. The permissions are then adjusted based on any configuration within the workflow file, first at the workflow level and then at the job level. Finally, if the workflow was triggered by a pull request event other than `pull_request_target` from a forked repository, and the **Send write tokens to workflows from pull requests** setting is not selected, the permissions are adjusted to change any write permissions to read only.
289289

0 commit comments

Comments
 (0)