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: github/actions_permissions_enterprise.go
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -73,9 +73,9 @@ func (s *ActionsService) GetActionsPermissionsInEnterprise(ctx context.Context,
73
73
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-github-actions-permissions-for-an-enterprise
74
74
//
75
75
//meta:operation PUT /enterprises/{enterprise}/actions/permissions
req, err:=s.client.NewRequest(ctx, "PUT", u, actionsPermissionsEnterprise)
78
+
req, err:=s.client.NewRequest(ctx, "PUT", u, body)
79
79
iferr!=nil {
80
80
returnnil, nil, err
81
81
}
@@ -207,9 +207,9 @@ func (s *ActionsService) GetActionsAllowedInEnterprise(ctx context.Context, ente
207
207
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-allowed-actions-and-reusable-workflows-for-an-enterprise
208
208
//
209
209
//meta:operation PUT /enterprises/{enterprise}/actions/permissions/selected-actions
req, err:=s.client.NewRequest(ctx, "PUT", u, actionsAllowed)
212
+
req, err:=s.client.NewRequest(ctx, "PUT", u, body)
213
213
iferr!=nil {
214
214
returnnil, nil, err
215
215
}
@@ -250,9 +250,9 @@ func (s *ActionsService) GetDefaultWorkflowPermissionsInEnterprise(ctx context.C
250
250
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-default-workflow-permissions-for-an-enterprise
251
251
//
252
252
//meta:operation PUT /enterprises/{enterprise}/actions/permissions/workflow
req, err:=s.client.NewRequest(ctx, "PUT", u, permissions)
255
+
req, err:=s.client.NewRequest(ctx, "PUT", u, body)
256
256
iferr!=nil {
257
257
returnnil, nil, err
258
258
}
@@ -293,9 +293,9 @@ func (s *ActionsService) GetArtifactAndLogRetentionPeriodInEnterprise(ctx contex
293
293
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-artifact-and-log-retention-settings-for-an-enterprise
294
294
//
295
295
//meta:operation PUT /enterprises/{enterprise}/actions/permissions/artifact-and-log-retention
req, err:=s.client.NewRequest(ctx, "PUT", u, period)
298
+
req, err:=s.client.NewRequest(ctx, "PUT", u, body)
299
299
iferr!=nil {
300
300
returnnil, err
301
301
}
@@ -329,9 +329,9 @@ func (s *ActionsService) GetSelfHostedRunnerPermissionsInEnterprise(ctx context.
329
329
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-self-hosted-runners-permissions-for-an-enterprise
330
330
//
331
331
//meta:operation PUT /enterprises/{enterprise}/actions/permissions/self-hosted-runners
req, err:=s.client.NewRequest(ctx, "PUT", u, permissions)
334
+
req, err:=s.client.NewRequest(ctx, "PUT", u, body)
335
335
iferr!=nil {
336
336
returnnil, err
337
337
}
@@ -366,9 +366,9 @@ func (s *ActionsService) GetPrivateRepoForkPRWorkflowSettingsInEnterprise(ctx co
366
366
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-private-repo-fork-pr-workflow-settings-for-an-enterprise
367
367
//
368
368
//meta:operation PUT /enterprises/{enterprise}/actions/permissions/fork-pr-workflows-private-repos
req, err:=s.client.NewRequest(ctx, "PUT", u, permissions)
371
+
req, err:=s.client.NewRequest(ctx, "PUT", u, body)
372
372
iferr!=nil {
373
373
returnnil, err
374
374
}
@@ -403,9 +403,9 @@ func (s *ActionsService) GetEnterpriseForkPRContributorApprovalPermissions(ctx c
403
403
// GitHub API docs: https://docs.github.com/enterprise-cloud@latest/rest/actions/permissions?apiVersion=2022-11-28#set-fork-pr-contributor-approval-permissions-for-an-enterprise
404
404
//
405
405
//meta:operation PUT /enterprises/{enterprise}/actions/permissions/fork-pr-contributor-approval
0 commit comments