Closed djonser closed 4 months ago
@cormack agreed we should handle this better. This is an issue we have across many facets of GHES and GHEC compatibility. Do you have any interest in opening up a PR to correct this behavior in the github_actions_repository_permissions resource?
You can also run into this when you have GitHub Team plan and private repos. When you're on the GitHub Teams plan, your private repos are not allowed to specify patterns_allowed
. Doing so results in the "409 Conflict" error.
👋 Hey Friends, this issue has been automatically marked as stale
because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned
label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!
Terraform Version
v1.3.9
Provider Version
v5.18.0
Affected Resource(s)
github_actions_repository_permissions
GitHub Setup
Problem description
When actions have been configured at the Enterprise as listed above, it prevents any changes being applied to
allowed_actions_config
at the organisation or repository level.It's not possible to ignore
allowed_actions_config
in the lifecycle and if attempting to manageallowed_actions_config
with a dynamic block, it throws409 Conflict
error whenenabled
is set to true.Outcome I would be hopeful for is the when this resource is used and when setting
allowed_actions
toselected
,allowed_actions_config
shall be optional. Sort of a toggle on/off on repository level.Terraform Configuration Files
Debug Output
Config 1: When using lifecycle and ignoring:
Config 2: When using dynamic block and enabling actions:
API Behaviour
Using this API call it's possible to toggle on/off without having to specify further configuration.
Additional Notes
I've not tested if similar issues would occur on
github_actions_organization_permissions
.