Skip to content

Commit 616802e

Browse files
committed
feat: add github_organization_security_configuration and github_enterprise_security_configuration resources
Adds resources to manage Code Security Configurations at the organization and enterprise level. Addresses all reviewer feedback from PR integrations#3143: - Fixed go-github import to v82 (matching go.mod) - Removed fmt.Sprintf from all tflog calls, using structured fields only - Create/Update set Computed fields directly and return nil (no Read call) - Added configuration_id Computed field for numeric API ID in State - Update/Delete use d.Get() from State instead of parsing composite ID - Simplified Import function, removed redundant buildID/SetId - Extracted setState helpers to DRY up Computed field population - Added unit tests for all util flatten functions Resolves integrations#2412
1 parent e57f353 commit 616802e

9 files changed

Lines changed: 2102 additions & 0 deletions

github/provider.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ func Provider() *schema.Provider {
180180
"github_organization_role_user": resourceGithubOrganizationRoleUser(),
181181
"github_organization_role_team_assignment": resourceGithubOrganizationRoleTeamAssignment(),
182182
"github_organization_ruleset": resourceGithubOrganizationRuleset(),
183+
"github_organization_security_configuration": resourceGithubOrganizationSecurityConfiguration(),
183184
"github_organization_security_manager": resourceGithubOrganizationSecurityManager(),
184185
"github_organization_settings": resourceGithubOrganizationSettings(),
185186
"github_organization_webhook": resourceGithubOrganizationWebhook(),
@@ -217,6 +218,7 @@ func Provider() *schema.Provider {
217218
"github_enterprise_actions_workflow_permissions": resourceGithubEnterpriseActionsWorkflowPermissions(),
218219
"github_actions_organization_workflow_permissions": resourceGithubActionsOrganizationWorkflowPermissions(),
219220
"github_enterprise_security_analysis_settings": resourceGithubEnterpriseSecurityAnalysisSettings(),
221+
"github_enterprise_security_configuration": resourceGithubEnterpriseSecurityConfiguration(),
220222
"github_workflow_repository_permissions": resourceGithubWorkflowRepositoryPermissions(),
221223
},
222224

0 commit comments

Comments
 (0)