You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So first, we want to start off with an existing github_repository_collaborators resource.
# start off with this existing resource already in the Terraform stateresource"github_repository_collaborators""a_repo_collaborators" {
repository=github_repository.some_repo.nameuser {
permission="admin"username="SomeUser"
}
}
next, we want to update the terraform resource and add a new outside collaborator to the repository. This outside collaborator needs to accept an expirable invite, so we'll also add the github_user_invitation_accepter resource.
The github_repository_collaboratorsinvitiation_ids attribute is planned with (known after apply)
github_user_invitation_accepter.accepter is planned with invitation_id = (known after apply)
Actual Behavior
github_repository_collaborators resource is planned
github_user_invitation_accepter.accepter is planned with invitation_id = "" so the fact there is a possible change in invitation_ids is not propagated.
Steps to Reproduce
Create a repository in an organization
Create a github_repository_collaborators resource and plan&apply it so the state exists.
Update the github_repository_collaborators resource to invite an outside collaborator
Add the github_user_invitation_accepter resource so the invite from github_repository_collaborators is automatically accepted.
terraform plan and observe that the plan for github_user_invitation_accepter assumes invitation_id is an empty string.
The text was updated successfully, but these errors were encountered:
👋 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 labled with Status: Up for grabs. You & others like you are the reason all of this works! So thank you & happy coding! 🚀
Terraform Version
Terraform v1.5.2
on darwin_arm64
Affected Resource(s)
Terraform Configuration Files
The goal is to 1) invite an outside collaborator to a repository and 2) automatically accept the invite from the outside collaborator's perspective.
So to do this you need 2 providers.
So first, we want to start off with an existing
github_repository_collaborators
resource.next, we want to update the terraform resource and add a new outside collaborator to the repository. This outside collaborator needs to accept an expirable invite, so we'll also add the
github_user_invitation_accepter
resource.Expected Behavior
github_repository_collaborators
invitiation_ids
attribute is planned with(known after apply)
github_user_invitation_accepter.accepter
is planned withinvitation_id = (known after apply)
Actual Behavior
github_repository_collaborators
resource is plannedgithub_user_invitation_accepter.accepter
is planned withinvitation_id = ""
so the fact there is a possible change ininvitation_ids
is not propagated.Steps to Reproduce
github_repository_collaborators
resource and plan&apply it so the state exists.github_repository_collaborators
resource to invite an outside collaboratorgithub_user_invitation_accepter
resource so the invite fromgithub_repository_collaborators
is automatically accepted.terraform plan
and observe that the plan forgithub_user_invitation_accepter
assumesinvitation_id
is an empty string.The text was updated successfully, but these errors were encountered: