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: content/admin/policies/enforcing-policies-for-your-enterprise/enforcing-policies-for-github-actions-in-your-enterprise.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -129,16 +129,20 @@ You can set the default permissions for the `GITHUB_TOKEN` in the settings for y
129
129
### Configuring the default `GITHUB_TOKEN` permissions
By default, when you create a new enterprise, `GITHUB_TOKEN` only has read access for the `contents`scope.
132
+
By default, when you create a new enterprise, `GITHUB_TOKEN` only has read access for the `contents`and `packages` scopes.
133
133
{% endif %}
134
134
135
135
{% data reusables.enterprise-accounts.access-enterprise %}
136
136
{% data reusables.enterprise-accounts.policies-tab %}
137
137
{% data reusables.enterprise-accounts.actions-tab %}
138
-
1. Under "Workflow permissions", choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents` scope.
138
+
1. Under "Workflow permissions", choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents`{% ifversion actions-default-workflow-permissions-restrictive %}and `packages` scopes{% else %}scope{% endif %}.

143
+
{% else %}
141
144

145
+
{% endif %}
142
146
{% else %}
143
147

144
148
{% endif %}
@@ -158,7 +162,11 @@ By default, when you create a new enterprise, workflows are not allowed to creat
158
162
{% data reusables.enterprise-accounts.actions-tab %}
159
163
1. Under "Workflow permissions", use the **Allow GitHub Actions to create and approve pull requests** setting to configure whether `GITHUB_TOKEN` can create and approve pull requests.
Copy file name to clipboardExpand all lines: content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md
+13-8
Original file line number
Diff line number
Diff line change
@@ -160,23 +160,27 @@ You can set the default permissions for the `GITHUB_TOKEN` in the settings for y
160
160
### Configuring the default `GITHUB_TOKEN` permissions
By default, when you create a new organization,{% ifversion ghec or ghes or ghae %} the setting is inherited from what is configured in the enterprise settings.{% else %} `GITHUB_TOKEN` only has read access for the `contents`scope.{% endif %}
163
+
By default, when you create a new organization,{% ifversion ghec or ghes or ghae %} the setting is inherited from what is configured in the enterprise settings.{% else %} `GITHUB_TOKEN` only has read access for the `contents`and `packages` scopes.{% endif %}
164
164
{% endif %}
165
165
166
166
{% data reusables.profile.access_profile %}
167
167
{% data reusables.profile.access_org %}
168
168
{% data reusables.profile.org_settings %}
169
169
{% data reusables.organizations.settings-sidebar-actions-general %}
170
-
1. Under "Workflow permissions", choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents` scope.
170
+
1. Under "Workflow permissions", choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents`{% ifversion actions-default-workflow-permissions-restrictive %}and `packages` scopes{% else %}scope{% endif %}.

176
+
{% else %}
174
177

178
+
{% endif %}
175
179
{% else %}
176
180

177
181
{% endif %}
178
182
{% else %}
179
-

183
+

180
184
{% endif %}
181
185
1. Click **Save** to apply the settings.
182
186
@@ -193,15 +197,16 @@ By default, when you create a new organization, workflows are not allowed to {%
193
197
{% data reusables.organizations.settings-sidebar-actions-general %}
194
198
1. Under "Workflow permissions", use the **Allow GitHub Actions to {% ifversion allow-actions-to-approve-pr-with-ent-repo %}create and {% endif %}approve pull requests** setting to configure whether `GITHUB_TOKEN` can {% ifversion allow-actions-to-approve-pr-with-ent-repo %}create and {% endif %}approve pull requests.


199
203
{% else %}
200
-

204
+

201
205
{% endif %}
202
206
{% else %}
203
-

207
+

Copy file name to clipboardExpand all lines: content/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository.md
+10-3
Original file line number
Diff line number
Diff line change
@@ -112,20 +112,23 @@ The default permissions can also be configured in the organization settings. If
112
112
### Configuring the default `GITHUB_TOKEN` permissions
By default, when you create a new repository in your personal account, `GITHUB_TOKEN` only has read access for the `contents`scope. If you create a new repository in an organization, the setting is inherited from what is configured in the organization settings.
115
+
By default, when you create a new repository in your personal account, `GITHUB_TOKEN` only has read access for the `contents`and `packages` scopes. If you create a new repository in an organization, the setting is inherited from what is configured in the organization settings.
116
116
{% endif %}
117
117
118
118
{% data reusables.repositories.navigate-to-repo %}
119
119
{% data reusables.repositories.sidebar-settings %}
120
120
{% data reusables.repositories.settings-sidebar-actions-general %}
121
-
1. Under "Workflow permissions", choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents` scope.
121
+
1. Under "Workflow permissions", choose whether you want the `GITHUB_TOKEN` to have read and write access for all scopes, or just read access for the `contents`{% ifversion actions-default-workflow-permissions-restrictive %}and `packages` scopes{% else %}scope{% endif %}.
@@ -142,7 +145,11 @@ By default, when you create a new repository in your personal account, workflows
142
145
{% data reusables.repositories.settings-sidebar-actions-general %}
143
146
1. Under "Workflow permissions", use the **Allow GitHub Actions to create and approve pull requests** setting to configure whether `GITHUB_TOKEN` can create and approve pull requests.
0 commit comments