Commit 01d53d0
feat: Add github_organization_security_configuration and github_enterprise_security_configuration resources
Adds two new resources to manage Code Security Configurations:
- github_organization_security_configuration: manages code security
configurations at the organization level
- github_enterprise_security_configuration: manages code security
configurations at the enterprise level
Both resources include:
- Full CRUD operations using GitHub's Code Security Configurations API
- Composite IDs (org/enterprise + config ID)
- 404-tolerant delete
- tflog structured logging throughout
- All optional fields use GetOk to avoid sending unset values
- Custom import support
- Shared expandCodeSecurityConfigurationCommon helper to avoid duplication
- All 4 delegated fields on enterprise: code_scanning_delegated_alert_dismissal,
secret_scanning_delegated_bypass, secret_scanning_delegated_bypass_options,
secret_scanning_delegated_alert_dismissal
- Fix flattenCodeScanningDefaultSetupOptions runner_type empty string drift
Acceptance tests (5 per resource):
- creates without error (with import verification)
- updates without error
- creates with nested options (runner, autosubmit)
- creates with minimal config (with import verification)
- creates with delegated bypass options
Documentation added for both resources.
Resolves integrations#2412
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent e31de46 commit 01d53d0
8 files changed
Lines changed: 1915 additions & 0 deletions
File tree
- github
- website/docs/r
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
183 | 184 | | |
184 | 185 | | |
185 | 186 | | |
| |||
217 | 218 | | |
218 | 219 | | |
219 | 220 | | |
| 221 | + | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
| |||
0 commit comments