Skip to content

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

@AnBorodin

Description

@AnBorodin

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

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

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions