Skip to content

[BUG]: github_organization_role_team doesn't wait for role_id #3009

Closed

Description

@elgohr

Expected Behavior

When creating a github_organization_role-resource and trying to use the role_id afterwards, the resource fails with the following error:

│   43:   role_id   = github_organization_role.example.role_id
│ 
│ The argument "role_id" is required, but no definition was found.

When re-runing apply with the created github_organization_role (from first run) it finds the role_id.

I would expect the resource to provide the role_id also when creating.

Actual Behavior

See above

Terraform Version

Terraform v1.11.4
on darwin_arm64

Affected Resource(s)

  • github_organization_role_team

Terraform Configuration Files

resource "github_organization_role" "example" {
  name      = "Example Reader"
  base_role = "read"
}

resource "github_organization_role_team" "example" {
  role_id   = github_organization_role.example.role_id
  team_slug = "example"
}

Steps to Reproduce

No response

Debug Output

Panic Output

Code of Conduct

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

Activity

  1. added
    Type: Bug
    Status: Triage
    on Dec 18, 2025
  2. github-actions commented on Dec 18, 2025

    @github-actions

    👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀

  3. removed
    Status: Triage
    on Dec 18, 2025
  4. added this to the v6.9.1 Patch milestone on Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions