[BUG]: Disabling the GH actions at organization or enterprise level is not supported #2405
Open
1 task done
Labels
Type: Bug
Something isn't working as documented
Expected Behavior
When using the github_actions_organization_permissions or github_enterprise_actions_permissions by providing the required arguments:
enabled_repositories = "none" https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_organization_permissions#enabled_repositories
enabled_organizations = "none" (https://registry.terraform.io/providers/integrations/github/latest/docs/resources/enterprise_actions_permissions#enabled_organizations)
no other attributes should provided and the actions get disabled at enterprise or organization level.
Actual Behavior
The actual behaviour is the same with both
│ Error: PATCH https://api.github.com/orgs/orgname: 422 []
│
│ with module.complete.github_organization_settings.this,
│ on ../../main.tf line 6, in resource "github_organization_settings" "this":
│ 6: resource "github_organization_settings" "this" {
│
╵
╷
│ Error: PUT https://api.github.com/orgs/orgname/actions/permissions: 422 Invalid request.
│
│ is not a member of ["all", "local_only", "selected"]. []
│
│ with module.complete.github_actions_organization_permissions.this[0],
│ on ../../main.tf line 169, in resource "github_actions_organization_permissions" "this":
│ 169: resource "github_actions_organization_permissions" "this" {
│
The provider is passing to the API a wrong combination of allowed_organizations or repositories and allowed_actions values.
Terraform Version
Terraform v1.9.6
on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: