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
{{ message }}
Repository navigation
[BUG]: github_team_repository error with version 5.9.0 - fails with at least one permission expected from permissions map #1373
Access should be refreshed, changes should be proposed by terraform plan
Actual Behavior
terraform plan errors:
╷
│ Error: at least one permission expected from permissions map
│
│ with module.easyhotel_docker_compose_repository.github_team_repository.push_access["6845313"],
│ on modules/easyhotel_github_repository/main.tf line 34, in resource "github_team_repository""push_access":
│ 34: resource "github_team_repository""push_access" {
│
╵
Steps to Reproduce
With existing repo/permissions
terraform plan will fail with above error
With non-existing permissions (permissions need to be created by this terraform run)
terraform apply will create the permission/s above (verified that access was given by checking the GitHub web UI), but the apply will still fail with the same error above.
Important Factoids
Is there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?
References
Similar error messages (not the same cause I guess):
changed the title [-][BUG]: `github_team_repository` error with version 5.9.0[/-][+][BUG]: `github_team_repository` error with version 5.9.0 - fails with `at least one permission expected from permissions map`[/+]on Nov 19, 2022
The difference comes from the Accept header: vnd.github.v3.repository+json (working) instead of vnd.github.stone-crop-preview+json (not working)
I don't understand why this header is used as the default one is correct
The difference comes from the Accept header: vnd.github.v3.repository+json (working) instead of vnd.github.stone-crop-preview+json (not working)
I don't understand why this header is used as the default one is correct
We also are seeing this exact issue. Thanks for finding the issue @jhaumont.
Is this able to be reverted as soon as possible please? I need the other features of 5.8.0 and 5.9.0.
@chaosaffe what's the correct way of dealing with this? Reverting the entire commit takes away a whole feature, but commenting code out as in #1378 doesn't seem great to me either.
@chaosaffe what's the correct way of dealing with this? Reverting the entire commit takes away a whole feature, but commenting code out as in #1378 doesn't seem great to me either.
I prefer a real fix but I don't have the time to do it. I let the maintainers decide!
Activity
[-][BUG]: `github_team_repository` error with version 5.9.0[/-][+][BUG]: `github_team_repository` error with version 5.9.0 - fails with `at least one permission expected from permissions map`[/+]dmitry-mightydevops commentedon Nov 19, 2022
Same thing.
Terraform fails with API call, but the actual team's permission is added, I can see it in the gui.
Debug log:
terraform code creates repo, but then immediately fails with the error above
ivorsmorenburg commentedon Nov 19, 2022
Broken, I get the same error testing out same TF and the new GitHub version released 5.9.0
oprudkyi commentedon Nov 20, 2022
workaround
jhaumont commentedon Nov 21, 2022
Same here. This one + the issue with visibility broken, it's all broken on our side 😄
jhaumont commentedon Nov 21, 2022
An interesting thing.
With this request (it is a similar one to what we have in 5.9.0):
You have no result.
But with this one (it is a similar one to what we have in 5.8.0):
You have the result!
The difference comes from the Accept header:
vnd.github.v3.repository+json(working) instead ofvnd.github.stone-crop-preview+json(not working)I don't understand why this header is used as the default one is correct
terraform-provider-github/vendor/github.com/google/go-github/v48/github/teams.go
Line 418 in bb0f993
cc @nickfloyd @kfcampbell
jhaumont commentedon Nov 21, 2022
I think I found the issue: https://github.com/integrations/terraform-provider-github/pull/1356/files#diff-062b7a475c9ddd7765fd96c620a3f7854307a4b68c0ff57db24b9d912b5bcec9R42
cc @elliottpope
scruplelesswizard commentedon Nov 21, 2022
Thanks for chasing this down @jhaumont!
stone-crop-previewis for the Team Review Assignments preview from the docs.The change landed in #1356, specifically in 934f06a
david-bain commentedon Nov 22, 2022
We also are seeing this exact issue. Thanks for finding the issue @jhaumont.
Is this able to be reverted as soon as possible please? I need the other features of 5.8.0 and 5.9.0.
jai commentedon Nov 22, 2022
@chaosaffe what's the correct way of dealing with this? Reverting the entire commit takes away a whole feature, but commenting code out as in #1378 doesn't seem great to me either.
jhaumont commentedon Nov 22, 2022
I prefer a real fix but I don't have the time to do it. I let the maintainers decide!
cfisher281 commentedon Nov 22, 2022
Any idea when we can get this fix implemented. Also thank you @jhaumont for digging into all of this and finding a resolution.
4 remaining items
jhaumont commentedon Nov 23, 2022
I ve closed my PR ! Thx for the fix @mpoindexter
RoozbehShafiee commentedon Nov 23, 2022
5.9.1didn't work for me. same output:fosterm-mw commentedon Nov 23, 2022
5.9.1Does not work for me as well. What's weird is changing the version in the github provider block did not fix the issue for my workspace.jhaumont commentedon Nov 23, 2022
@RoozbehShafiee @fosterm-mw 5.9.1 version doesn't address this issue but only #1368 (cf changelog https://github.com/integrations/terraform-provider-github/releases/tag/v5.9.1)
Switching from make test to make testacc
fatbasstard commentedon Nov 25, 2022
Still hitting this issue in the 5.9.1
elliottpope commentedon Nov 25, 2022
There's a fix for the issue in #1384. Confirmed the acceptance tests for github_team_repository pass after introducing this change
nickfloyd commentedon Nov 28, 2022
Released: GitHub | Terraform registry
laurenchurch commentedon Nov 28, 2022
Still hitting this issue in 5.9.2 for the
github_teamresource.Tenzer commentedon Nov 28, 2022
It works for me with 5.9.2. We are using
github_team_repository.lukas-hetzenecker commentedon Nov 28, 2022
Everything working here again perfectly with 5.9.2, using
github_teamandgithub_team_repository. Thanks for the bugfix! ❤️Nexus357ZA commentedon Nov 28, 2022
I'm still having this issue with the
github_team_repositoryresource 5.9.2RoozbehShafiee commentedon Nov 29, 2022
The
5.9.2works for me too. Thanks for the bug fix.github_team_repostiory fix is available in Github provider version5.9…