We are archiving a plethora of old repositories and are trying to use the GitHub API to do so. It seems like the user who issues the API request needs to be a collaborator on the repo. This is a real problem because a whole host of different people within the company own the repos.
Even the site admin cannot issue the API request for repos they don’t owner.
We have also tried to use the API to add a collaborator/transfer ownership but these also fail.
Is there a way for a user/site admin to archive repos that are now a collaborator of using one or more API requests?