[BUG]: github_actions_organization_permissions
has incorrect import behavior when allowed_actions_cofig
is managed by enterprise actions permissions
#2362
Labels
Status: Up for grabs
Issues that are ready to be worked on by anyone
Type: Bug
Something isn't working as documented
Expected Behavior
When
allowed_actions_config
is managed at enterprise level by resourcegithub_enterprise_actions_permissions
, theallowed_actions_config
block should not be included in the state attribute when importing the organizational level resourcegithub_actions_organization_permissions
Actual Behavior
In the tf state for
github_actions_organization_permissions
, theallowed_actions_config
block is populated with data inherited fromgithub_enterprise_actions_permissions
. As a result,github_actions_organization_permissions
will try to set the permissions managed at the enterprise level. API returns 409 error during apply.This seems to be a symptom similar to #2182, but caused by import
Terraform Version
Terraform v1.9.4
on windows_amd64
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Then make some changes to the actions org permissions, ie add a new id to
repository_ids
listThe apply will fail with error
I was able to work around this by editing the
allowed_actions_config
attribute for this resource to[]
in the tfstate file.Debug Output
No response
Panic Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: