-
Hi all, 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:
But i always end up with the response “Resource not accessible by integration”. Thanks for your help & kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Have you tried using Personal access token? I am registering the self-hosted runner from Dockerfile programmatically. Because I want to run the self-hosted runner inside the docker container. I got it working with PAT… Not with Github app. I think if you are using the Gihub app, you could probably check the permission in the document. I think it needs to have the full right for repo and self-host permission. For organization runner, u need to give the full admin right too. |
Beta Was this translation helpful? Give feedback.
-
Thanks, we are currently doing in the same way as you do with the PAT, but we rather want to do it via a GitHub app for some different reasons. And i just found out what i was missing to get i work with the GitHub App: With that everything works fine :slight_smile: kind regards, |
Beta Was this translation helpful? Give feedback.
-
Thanks. That’s a great new. Can you please share what you did with Github app? I did the followings.
I don’t like using the PAT. I’ve been asking around as below… No luck yet. |
Beta Was this translation helpful? Give feedback.
-
What I did so far is:
So this is all on a repository level, I did not try it for an organisation or so. |
Beta Was this translation helpful? Give feedback.
-
I found I could do it with a personal access token as long as it had:
perms. Then it was just the one step with the personal access token. |
Beta Was this translation helpful? Give feedback.
-
Interesting… I’ve been looking for this info but could not find it. Is this (eg how to use a PAT with a self-hosted runner) officially documented anywhere? |
Beta Was this translation helpful? Give feedback.
What I did so far is: