go-github: not able to activate advanced security
Forgive my naivety as an amateur developer, especially in go.
I am trying to use Repositories.Edit
to update the SecurityAndAnalysis.AdvancedSecurity.Status
to enabled
and even though I get 200 status, I receive an empty response. The field does not update as expected.
The response body appears to not have the field available, which is probably the issue.
I am definitely able to see the status of the field, using SecurityAndAnalysis.GetAdvancedSecurity()
Does anyone know what I may be doing wrong or if this is maybe a bug somewhere? Thanks in advance!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21
It works! I had a feeling it was something like that. I was trying to create a smaller body object with just those fields and couldnt figure that out. Thank you so much!
You are correct that this is on a paid “Enterprise” subscription. Sorry for not being forthcoming, Im also just now realizing there is a difference seemingly. I might be able to find a way to get you access to a test repo if that makes things easier.
Thank you for ruling out the delayed-propagation scenario.
Later today I will attempt to recreate the problem and let you know what I discover. But the bottom line is that if you were able to make things work using
curl
, then this repo’s method should also work… so let’s get to the bottom of this and fix it. 😊Two options: