Skip to content

Commit 68ae87b

Browse files
Specify GITHUB_TOKEN enterprise behaviour for new Orgs/Enterprises (#55110)
Co-authored-by: Sophie <[email protected]>
1 parent 5b1f31c commit 68ae87b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/admin/enforcing-policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ If a policy is enabled for an enterprise, the policy can be selectively disabled
161161

162162
In the "Workflow permissions" section, you can set the **default** permissions granted to the `GITHUB_TOKEN`.
163163

164-
* **Read and write permissions:** By default, `GITHUB_TOKEN` has read and write access for all scopes.
164+
* **Read and write permissions:** The default permissions for the `GITHUB_TOKEN` depend on when the enterprise or organization was created:
165+
166+
* **Created on or after February 2, 2023** – Defaults to **read-only** access for all scopes.
167+
* **Created before February 2, 2023** – Defaults to **read and write** access for all scopes.
168+
165169
* **Read repository contents and packages permissions:** By default, `GITHUB_TOKEN` has only read access for the `contents` and `packages` scopes. The more permissive setting cannot be chosen as the default for individual organizations or repositories.
166170

167171
Anyone with write access to a repository can still modify the permissions granted to the `GITHUB_TOKEN` for a specific workflow, by editing the `permissions` key in the workflow file.

0 commit comments

Comments
 (0)