-
Notifications
You must be signed in to change notification settings - Fork 849
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
I want to set actor_type
to DeployKey
(as I can do so via API or UI)
Actual Behavior
I configured deploy keys as a bypass actors for the repository via GitHub UI but was not able to do so via terraform, when I run terraform plan without my code, I see
# github_repository_ruleset.repos["jetbrains-ai-platform"] will be updated in-place
~ resource "github_repository_ruleset" "repos" {
id = "3511063"
name = "Default"
# (6 unchanged attributes hidden)
~ bypass_actors {
~ actor_id = 0 -> 5
~ actor_type = "DeployKey" -> "RepositoryRole"
# (1 unchanged attribute hidden)
}
- bypass_actors {
- actor_id = 5 -> null
- actor_type = "RepositoryRole" -> null
- bypass_mode = "always" -> null
}
# (2 unchanged blocks hidden)
}
Then I try adding DeployKey to my code as plan suggested, but I get
Error: expected bypass_actors.1.actor_type to be one of ["RepositoryRole" "Team" "Integration" "OrganizationAdmin"], got DeployKey
...
on repositories.tf line 238, in resource "github_repository_ruleset" "repos":
238: resource "github_repository_ruleset" "repos" {
Terraform Version
Terraform v1.7.5
on darwin_arm64
- provider registry.terraform.io/integrations/github v6.6.0
Affected Resource(s)
- github_repository_ruleset (bypass_actors)
Terraform Configuration Files
Steps to Reproduce
No response
Debug Output
Panic Output
Code of Conduct
- I agree to follow this project's Code of Conduct
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
🆕 Triage