Commit 6d3c919
committed
feat: Add github_organization_security_configuration and github_enterprise_security_configuration resources
This commit 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) to avoid state collisions
- 404-tolerant delete (treats already-deleted resources as success)
- tflog structured logging throughout
- All optional fields use GetOk to avoid sending unset values
- Custom import support
Acceptance tests (8 total, 4 per resource):
- creates without error
- updates without error
- creates with nested options (runner, autosubmit, bypass)
- creates with minimal config
Documentation added for both resources.
Resolves #24121 parent 46682cf commit 6d3c919
8 files changed
Lines changed: 1902 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