integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
879 stars 719 forks source link

[FEAT]: add support for pre-defined organization roles #2314

Open mkushakov opened 1 month ago

mkushakov commented 1 month ago

Describe the need

As announced https://github.blog/changelog/2024-07-10-pre-defined-organization-roles-that-grant-access-to-all-repositories/ Github has added support for pre-defined organisation roles. To add new resource like github_team_organization_role similar to github_team_repository to assign team to pre-defined role.

resource "github_team" "some_team" {
  name        = "SomeTeam"
  description = "Some cool team"
}

resource "github_team_organization_role" "some_team_role" {
  team_id    = github_team.some_team.slug
  role = "all_repo_read"
}

API:

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct