i’d like to programmatically register self-hosted Actions Runner on a given repository, but i have some issues obtaining the registration token that is needed to invoke the config.sh.
What i got so far:
- I have an GitHub App installed on the Repository
- I gerate a JWT
- I call api.github.com/app/installations/123456/access_tokens with the JWT to get an access token for that repo for the installation
- and with the returned token I try to call api.github.com/repos/owner/my-repo/actions/runners/registration-token for the repository
But i always end up with the response “Resource not accessible by integration”.
Is it not possible to access this endpoint with an installation access token or is my app missing some permissions for that?
Or did i miss some steps on the way?
Thanks for your help & kind regards,