New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doubt about app_token.sh #262
Comments
|
I don't have this answer off hand, but if you can find minimal permissions I'm happy to put them on the wiki |
|
This also appears to be an issue for me as well. I can't seem to get a working PAT that actually authenticates without a 404 failure and I can only get a runner working temporarily by supplying a |
|
OK, to follow up I think the problem is the new Fine-grained tokens setup. I was able to successfully create a classic token selecting all of the permissions as outlined in the Usage guide for token scopes. After that I was able to drop the |
https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28 I'm not sure if the PAT permissions are minimal right now but had no time to check yet :) |
|
replace org by repo/enterprise depending on your use-case. |
|
@myoung34 could you update the wiki with that information? |
the documentation seems to be wrong here: according to this org:Self-hosted runners Write permissions are sufficient which corresponds with my tests. so it would be :
|
|
If someone can give me the full explicit version of what I should document I'm more than happy to do so Are one of you willing to consolidate your findings for me? This is not a portion of this image I use often enough and my brains are pretty fried at this point 😆 If youll post a concise summary of permissions and a description Ill definitely commit it to the wiki 🙏 |
|
As far as I can tell, https://docs.github.com/en/rest/actions/self-hosted-runners?apiVersion=2022-11-28 gives a good overview of what is needed in terms of permissions for registering/managing runners:
EDIT: Oh, and of course one would always need "read and write" permissions, since creating a registration token is a |
|
After conducting an experiment, I can confirm that |
|
Thanks! |
I've not found anything in documentation about the GitHub App permissions needed to be able to register a runner for a given repo/org/enterprise.
I've read the needed PAT permission here
https://github.com/myoung34/docker-github-actions-runner/wiki/Usage#token-scope
but the mapping to App permission is not trivial. Can you help me?
The text was updated successfully, but these errors were encountered: