go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Could not enable runner in repository

Open mohammedazfar-sanuk opened this issue 4 years ago • 2 comments

hi team,

im using "github.com/google/go-github/v38" in recent days, im facing the below error in my script, which was working well.

Could not enable runner in repository PUT https://api.github.com/orgs/sam-org/actions/runner-groups/4/repositories/7672: 500 Server Error []

Any suggestions about this pl ?

mohammedazfar-sanuk avatar Jul 26 '22 17:07 mohammedazfar-sanuk

Please check that your personal access token has the proper scopes enabled to allow you to perform this operation. See https://github.com/settings/tokens

Looking at the official docs, it appears that you need the admin:enterprise Full control of enterprises scope and this may only be possible when using GitHub Enterprise, but I haven't tried it myself, so I'm not quite sure.

Maybe others who have actually done this can comment.

gmlewis avatar Jul 26 '22 17:07 gmlewis

Closing due to inactivity.

gmlewis avatar Mar 17 '25 22:03 gmlewis