-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure unmarshalling organization with large PrivateRepos number in plan #2736
Comments
Something seems fishy here... have you looked at the JSON output directly from the server (using |
I agree
Yes. Using an PAT as an org owner to
Yes, my colleague has. I'll update here with their response when we receive it |
Received confirmation from GitHub that this is the expected value when using GitHub Enterprise Server. This library will need to be updated to accommodate the larger value.
|
@MISO-mgriffin - thank you! |
@shaines1 and/or @MISO-mgriffin - could you please review (and LGTM+Approve if you agree) with #2738 when you have a moment? |
Hello,
I am attempting to use the integrations/github Terraform provider with GitHub Enterprise Server. Executing
terraform plan
andterraform apply
with infrastructure definitions that require interacting with organizations hosted in the GHES instance result in the following go-github error:On inspection of the organization JSON representation, the plan.private_repos has a value of 999999999999. My assumption is that the unmarshalling error is due to the PrivateRepos variable in go-github only being declared as an int.
Here's an abbreviated snippet of the organization JSON output:
Would it be possible to modify this data type? Please let me know if there's anything else that would be helpful to provide!
Environment
The text was updated successfully, but these errors were encountered: