Skip to content

[BUG]: Using a team ID for github_repository_collaborators causes churn #2414

Closed

Description

@stevehipwell

Expected Behavior

Based on the documentation I'd expect to be able to set team_id to the team ID and have no churn.

Actual Behavior

It looks like the team slug is stored in the state which is causing churn on every run.

Terraform Version

Terraform v1.7.5
on windows_amd64

Affected Resource(s)

  • github_repository_collaborators

Terraform Configuration Files

No response

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct

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

Activity

  1. added
    Status: Triage
    Type: Bug
    on Oct 7, 2024
  2. added
    Status: Up for grabs
    and removed
    Status: Triage
    on Oct 7, 2024
  3. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Oct 7, 2024
  4. petergasper commented on Oct 10, 2024

    @petergasper

    As a workaround, I was able to use the resource by replacing id with the slug
    team {
    permission = "pull"
    team_id = data.github_team.repo_teams["xyz"].slug
    }

  5. stevehipwell commented on Oct 10, 2024

    @stevehipwell
    CollaboratorAuthor

    @petergasper I saw this churn even when using the slug.

  6. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Oct 11, 2024
  7. petergasper commented on Oct 15, 2024

    @petergasper

    @stevehipwell I did not, but I have changed it once I had the state file with resources in place. Maybe I got lucky with my setup. Should be fixed now 🚀

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

    Status: Up for grabsType: Bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions