Skip to content

Commit 6d700ff

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

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_actions_organization_permissions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func resourceGithubActionsOrganizationAllowedObject(d *schema.ResourceData) *git
102102
}
103103

104104
if v, ok := data["sha_pinning_required"]; ok {
105-
allowed.SHAPinningRequired = github.Bool(v.(bool))
105+
allowed.SHAPinningRequired = github.Ptr(v.(bool))
106106
}
107107

108108
patternsAllowed := []string{}

github/resource_github_actions_repository_permissions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func resourceGithubActionsRepositoryAllowedObject(d *schema.ResourceData) *githu
9191
}
9292

9393
if v, ok := data["sha_pinning_required"]; ok {
94-
allowed.SHAPinningRequired = github.Bool(v.(bool))
94+
allowed.SHAPinningRequired = github.Ptr(v.(bool))
9595
}
9696

9797
patternsAllowed := []string{}

0 commit comments

Comments
 (0)