integrations / integrations/terraform-provider-github

[FEAT]: Support RepositoryMigration actor type in bypass_actors for ruleset

Open
#3,336 7 comments 0 reactions 0 assignees View on GitHub
r/repository_ruleset Status: Triage Type: Feature
Dominant language
Go
Stars
1.2k
Forks
1k
Avg merge
1d 14h
Merged PRs (30d)
8

Description

### Describe the need

The current implementation of `bypass_actors` in `github_repository_ruleset` and `github_organization_ruleset` resources does not support `RepositoryMigration` as a valid `actor_type`, causing the following error when applying Terraform configurations that include it:

expected actor_type to be one of ["Integration" "OrganizationAdmin" "RepositoryRole" "Team" "DeployKey"], got RepositoryMigration

This is needed when migrating repositories that already have rulesets configured - the `RepositoryMigration` actor type allows bypassing ruleset rules during migration, preventing failures when importing repositories with existing branch protection or ruleset configurations.

### SDK Version

_No response_

### API Version

_No response_

### Relevant log output

```shell
Error: expected actor_type to be one of ["Integration" "OrganizationAdmin" "RepositoryRole" "Team" "DeployKey"], got RepositoryMigration
```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.