-
Notifications
You must be signed in to change notification settings - Fork 772
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
[MAINT]: actor_id for OrganizationAdmin seems to have changed from 1 to 0 #2536
Comments
I added a comment to github/rest-api-description#4406 as this could be a regression as the GitHub API docs still explicitly say to use |
FYI @Danielku15 |
Yes, I've noticed that in some places the null values are represented as 0 in the models for simplicity. But if not handled correctly on the api calls, it can lead to bugs like #2317 Null and 0 can have different semantics on the github api leading to validation errors when sending the wrong data. |
@Danielku15 in this context if |
@stevehipwell True, in this context things should be fine. It appears also for me #2317 disappeared on our GHES after upgrade to 3.15. In my previous tests and troubleshooting it appeared that a GH Go SDK uses |
@Danielku15 you're right, I've been working in both the SDK and TF provider so my memory was slightly off. I'm planning on re-implementing the ruleset code once google/go-github#3430 has been merged & released. One of the things I'm planning on doing is supporting not requiring the actor ID for well known actors. |
Describe the need
Since a couple of days I'm getting changes shown on
terraform plan
related to rulesets that use theactor_type
OrganizationAdmin
in the bypass actors.For example:
It seems the
actor_id
used internally in Github forOrganizationAdmin
changed from1
to0
.Changing my configurations from
1
to0
again leads to "no changes" detected as expected.Applying with the
1
still present did not lead to any errors, so I would assume this is not a breaking change related to creating/updating this kind of resources.I guess for this project the main impact would be that the documentation would need to be updated to refer to
0
instead of1
.SDK Version
No response
API Version
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: