Skip to content

Commit 2c47467

Browse files
committed
feat(actions_permissions): sha_pinning_required
Fix #2869. Signed-off-by: Leonard Sheng Sheng Lee <[email protected]>
1 parent 6d700ff commit 2c47467

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

github/resource_github_actions_organization_permissions.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -316,19 +316,3 @@ func resourceGithubActionsOrganizationPermissionsDelete(d *schema.ResourceData,
316316

317317
return nil
318318
}
319-
320-
func flattenActionsAllowed(d *schema.ResourceData, actionsAllowed *github.ActionsAllowed) error {
321-
if actionsAllowed != nil {
322-
config := make(map[string]interface{})
323-
config["github_owned_allowed"] = actionsAllowed.GetGithubOwnedAllowed()
324-
config["verified_allowed"] = actionsAllowed.GetVerifiedAllowed()
325-
config["patterns_allowed"] = schema.NewSet(schema.HashString, interfaceSlice(actionsAllowed.GetPatternsAllowed()))
326-
config["sha_pinning_required"] = actionsAllowed.GetShaPinningRequired()
327-
328-
if err := d.Set("allowed_actions_config", []interface{}{config}); err != nil {
329-
return err
330-
}
331-
}
332-
333-
return nil
334-
}

0 commit comments

Comments
 (0)