55 "errors"
66 "log"
77
8- "github.com/google/go-github/v68 /github"
8+ "github.com/google/go-github/v77 /github"
99 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
1010 "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
1111)
@@ -147,7 +147,7 @@ func resourceGithubActionsOrganizationPermissionsCreateOrUpdate(d *schema.Resour
147147 allowedActions := d .Get ("allowed_actions" ).(string )
148148 enabledRepositories := d .Get ("enabled_repositories" ).(string )
149149
150- _ , _ , err = client .Actions .EditActionsPermissions (ctx ,
150+ _ , _ , err = client .Actions .UpdateActionsPermissions (ctx ,
151151 orgName ,
152152 github.ActionsPermissions {
153153 AllowedActions : & allowedActions ,
@@ -164,7 +164,7 @@ func resourceGithubActionsOrganizationPermissionsCreateOrUpdate(d *schema.Resour
164164 }
165165 if actionsAllowedData != nil {
166166 log .Printf ("[DEBUG] Allowed actions config is set" )
167- _ , _ , err = client .Actions .EditActionsAllowed (ctx ,
167+ _ , _ , err = client .Actions .UpdateActionsAllowed (ctx ,
168168 orgName ,
169169 * actionsAllowedData )
170170 if err != nil {
@@ -297,7 +297,7 @@ func resourceGithubActionsOrganizationPermissionsDelete(d *schema.ResourceData,
297297 }
298298
299299 // This will nullify any allowedActions elements
300- _ , _ , err = client .Actions .EditActionsPermissions (ctx ,
300+ _ , _ , err = client .Actions .UpdateActionsPermissions (ctx ,
301301 orgName ,
302302 github.ActionsPermissions {
303303 AllowedActions : github .String ("all" ),
0 commit comments