-
Notifications
You must be signed in to change notification settings - Fork 880
Open
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Description
Expected Behavior
- Generate a Terraform plan to destroy a
github_repositoryresource with thearchive_on_destoryflag set totruein an org with a GitHub Advanced Security policy requiring code scanning to be enabled on all repos. - Apply the plan.
terraform plandoes not fail. - The repository is archived.
Actual Behavior
terraform plan fails with:
Error: PATCH https://api.github.com/repos/MY_ORG/MY_REPO: 422 An enforced security configuration prevented modifying secret scanning enablement. Contact your organization owner for details.
Terraform Version
Terraform v1.11.4
on darwin_arm64
+ provider registry.terraform.io/integrations/github v6.6.0
Affected Resource(s)
- github_repository
Terraform Configuration Files
Steps to Reproduce
- Generate a Terraform plan to destroy a
github_repositoryresource with thearchive_on_destoryflag set totruein an org with a GitHub Advanced Security policy requiring code scanning to be enabled on all repos. - Apply the plan.
terraform planfails with:
Error: PATCH https://api.github.com/repos/MY_ORG/MY_REPO: 422 An enforced security configuration prevented modifying secret scanning enablement. Contact your organization owner for details.
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct
pnancarrow
Metadata
Metadata
Assignees
Labels
Status: TriageThis is being looked at and prioritizedThis is being looked at and prioritizedType: BugSomething isn't working as documentedSomething isn't working as documented
Type
Projects
Status
🔥 Backlog
Status
Backlog