In SetSelectedReposForOrgSecret, when trying to set selected repositories for a organisation secret to empty, it returns an API error:
422 Invalid request.
"selected_repository_ids" wasn't supplied. []
I assume this is because omitempty is set for selected_repository_ids in the request data. Considering that there should be a valid use case to clear up all selected repositories for an organisation secret, omitempty will need to be removed.